Jump to content

Handling multiple XML text segments


Recommended Posts

This is XML.

<r>My <b>car</b> is <b>blue</b></r>

What is the correct text content of r?

Using _ to represent a space, r's text value could be: My__is_  Capture every character between <> My__is   Strip leading and trailing whitespace Myis     Strip each segments leading and trailing whitespace My       Use only the first text value is       Use only the last value

I'm interested in how the various parsers handle this,but references to the XML standard would be most appreciated.Thank youLarry

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...