What is the purpose of XML <? ?> tokens?

paska

New Member
Usually XML document starts with the header like \[code\]<?xml version="1.0" encoding="utf-8"?>\[/code\]Consider this document\[code\] <?xml version="1.0" encoding="utf-8"?> <Foo> <?One?> <?Two some?> <?Three <?Nested ?> ?> </Foo>\[/code\][*]Can one reuse \[code\]<?\[/code\] and \[code\]?>\[/code\] again inside the XML document?[*]Does XML parser ignore these content in these tags? How to get them? [*]Is there any problem with Three's Nested tag?My guess is these are document property and can be placed anywhere. Right? Also I'm thinking to do some XML data generation based on these meta tags. Is that a right approach?e.g.\[code\] <?if a == b ?> <Node>IncludeIfEqual</Node> <?endif ?>\[/code\]PS Google doesn't help. It ignores \[code\]<?\[/code\] keyword.
 
Back
Top