473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

New to XML Parsing

Hi,
I need a little help here as Im new to xml .The problem is in my web
App I get response as xml and I try to parse it using
DocumentBuilderFactory. All seems to work fine I dont get any errors
but the Document generated shows up
nothing..document.getDocumentType() returns null...

What may be the reason!!

Ashutosh

Mar 20 '07 #1
3 1551
Quoth "as*****@gmail.com":
Hi,
I need a little help here as Im new to xml .The problem is in my web
App I get response as xml and I try to parse it using
DocumentBuilderFactory. All seems to work fine I dont get any errors
but the Document generated shows up
nothing..document.getDocumentType() returns null...

What may be the reason!!
Mime type text/xml unknown to originator?

--
A noise annoys an oyster
Mar 21 '07 #2
as*****@gmail.com wrote:
I need a little help here as Im new to xml .The problem is in my web
App I get response as xml and I try to parse it using
DocumentBuilderFactory. All seems to work fine I dont get any errors
but the Document generated shows up
nothing..document.getDocumentType() returns null...
Does the XML you receive have a DOCTYPE node? It is not unusual that
there is no DTD associated with an XML document. It should have a root
element however so
document.getDocumentElement()
should not be null.
I am afraid we can only guess what goes wrong, you need to provide the
relevant code you have written to use DocumentBuilderFactory and show us
how the XML looks.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 21 '07 #3
in message <11*********************@l77g2000hsb.googlegroups. com>,
as*****@gmail.com ('as*****@gmail.com') wrote:
Hi,
I need a little help here as Im new to xml .The problem is in my web
App I get response as xml and I try to parse it using
DocumentBuilderFactory. All seems to work fine I dont get any errors
but the Document generated shows up
nothing..document.getDocumentType() returns null...
Show us your code. We can't say anything helpful without seeing it.

--
si***@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

;; in faecibus sapiens rheum propagabit

Mar 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
2
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
16
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed...
3
by: toton | last post by:
Hi, I have some ascii files, which are having some formatted text. I want to read some section only from the total file. For that what I am doing is indexing the sections (denoted by .START in...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.