This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Regarding reading using XMLbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Regarding reading using XMLbeans" Watch "Regarding reading using XMLbeans" New topic

Regarding reading using XMLbeans

Priyakant Charokar
Ranch Hand

Joined: May 08, 2004
Posts: 58

Please help me about this XMLbeans example.

I have an XSD, the person.xsd

<xs:schema xmlns:xs="">
<xs:element name="person-group">
<xs:element name="person" type="person" />
<xs:complexType name="person">
<xs:element name="name" type="xs:string" />
<xs:element name="age" type="xs:int" />


<?xml version="1.0" encoding="UTF-8"?>

I geneated the jar using scomp command

I want to read this XML using XMLBeans in one object and iterate it to all other person object.

Q: Is it possible to get all person object in one object say PersonGroup ?
Q: How to iterate over person object ?

Kindly reply.


I agree. Here's the link:
subject: Regarding reading using XMLbeans
Similar Threads
XML valiadation using schema
newbie question: ref or complex type ?
[schema] Allow an element to have any content
Changing noNamespace to logical name in XMLbeans
Creating a JMS TextMessage From XML