lclee Posted October 4, 2012 Share Posted October 4, 2012 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 comment Share on other sites More sharing options...
Ingolme Posted October 4, 2012 Share Posted October 4, 2012 If I'm remembering correctly, the text content should be all the text from the node and all its descendents, whitespace included. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now