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

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -