Announcements
No record found.
I need to create the following
<Document>
<Cstr>
<Book>
<name>test</name>
</Book>
</cstr>
</Document>
How do I get </cstr>??
Can you help me with the code for the same??
XML documents can have only one root node, that's defined in the XML standard.
If your XML file has many <Document> elements, you can add <Documents> root node and put all <Document> elements as child nodes of <Documents>.
You also asked "How do I get </cstr>?" What do you mean by that?
Cstr isn't a root node - it's embedded in the Document node. Or it would if the opening tag matched the closing one. It doesn't because the closing tag doesn't start with the capital 'C'.
By the way, the structure will be obvious if you use indentation (see below). You can achieve that by using Insert > Insert Code (in the rich formatting view), therefore please use that for pasting code snippets.
test test
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 664
André Arnaud de Cal... 615 Super User 2026 Season 1
CP04-islander 550