Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 422 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional