parsing xml

2007-02-06 Thread varun.81
hi i am new to use this xerces tool.i have to parse an xml a very simple one say hello i am able to do it through an xml file, but it throws me an error when i try to give xml with proper indentetion but it works if i give xml without spaces between the tags. i will be obliged if

RE: parsing xml

2007-02-06 Thread Motti Shneor
Gladly. Only all my attachments were rejected by the list. Is it at all allowed to attach files ? Motti Shneor Software Engineer Orbograph Ltd. P.O.Box 215, Yavne 81102, Israel Tel: 972-8-9322257 ext. 230 Fax: 972-8-9328857 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]/omailto:[EMAIL PROTECTED]

RE: parsing xml

2007-02-06 Thread varun.81
input child name=Varunhello/child /input Motti Shneor-2 wrote: Gladly. Only all my attachments were rejected by the list. Is it at all allowed to attach files ? Motti Shneor Software Engineer Orbograph Ltd. P.O.Box 215, Yavne 81102, Israel Tel: 972-8-9322257 ext. 230

RE: parsing xml

2007-02-06 Thread Jesse Pelton
Attachments are allowed. This message should have two attachments: one is an input document constructed from your text (except the quotes), the other is the output from DOMPrint when the first is parsed. Does DOMPrint fail if you save either of these to disk and parse it? If so, with what

RE: parsing xml

2007-02-06 Thread varun.81
So can you suggest me how i can discard white spaces even if it is present in the document ? Jesse Pelton wrote: Ah. Now we're talking. If you put non-discardable whitespace into a document, it will be included in the DOM hierarchy as text nodes. In your document, the input element has

RE: parsing xml

2007-02-06 Thread Jesse Pelton
I forgot to respond to your specific question: if you want to ignore certain text, check whether the node you're processing is a text node, and if so, skip processing it if you determine you don't care about its contents. DOMNode::getNodeType() allows you to determine the type of any given node

Re: parsing xml

2007-02-06 Thread Boris Kolpackov
Hi Jesse, Jesse Pelton [EMAIL PROTECTED] writes: Alternatively, you can write a DTD or schema for your documents and let Xerces sort out which nodes are white space in element content. You'll still need to check whether the node you're processing is a text node; if it is,

RE: Re: parsing xml

2007-02-06 Thread Jesse Pelton
I always wondered what that flag was for! -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Boris Kolpackov Sent: Tuesday, February 06, 2007 3:11 PM To: c-dev@xerces.apache.org Subject: Re: parsing xml Hi Jesse, Jesse Pelton [EMAIL PROTECTED] writes: Alternatively,

[jira] Commented: (XERCESC-1512) Bad XS:pattern interpretation for XSD

2007-02-06 Thread Tony Wang (JIRA)
[ https://issues.apache.org/jira/browse/XERCESC-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470798 ] Tony Wang commented on XERCESC-1512: I am experiencing the same issue when using Xerces 2.7 in our product,