java - How to display xml with two parent nodes -



java - How to display xml with two parent nodes -

how generate xml using dom parser in java , shown below

<result> <schma_index> <id>8</id> <name>raja</name> <schma_index> </result>

above should display

<massage>no privilege</mesaage> <result> <schma_index> <id>8</id> <name>raja</name> <schma_index> </result>

you can't have 2 root elements in xml. read well-formed xml. can generate message , result xml's separately , concatenate them. however, parser's can't parse result xml.

java xml

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

content management system - How to allow only English submissions on Pligg CMS -

c++ - Is it possible to apply breadth-first search algorithm of boost library to matrix? -