|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Character data location
Can I assume that character data is always located between 1) a start tag and a start tag, 2) a start tag and it's corresponding end tag, or 3) an end tag and an end tag?
Code:
<foo>case1<bar>case2</bar>case3</foo> I ask because I'm trying to learn a streaming xml parser (expat) and often, contigious character data blocks are broken up into more than one calls to the chardata handler, so I need a way of delimiting it reliably to know when it's over. |
|
#2
|
|||
|
|||
|
You can't assume any of these, unless there is a spec for your format which specifically indicates one of them.
Example. html <body>text<b>BoldText</b>moretext</body> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Character data location |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|