File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes JDOM parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JDOM parsing" Watch "JDOM parsing" New topic
Author

JDOM parsing

Brian Moakley
Greenhorn

Joined: Apr 12, 2007
Posts: 11
Hey All,

Been awhile since I was last at the ranch. I just have a quick question regarding JDOM. Right now, I'm trying to parse the content.xml of an ODF file. I'm having a lot of problems getting children of Elements using the getChildren method.

Here's my code:



Here's a sample of the XML



I've tried passing a Namespace as a parameter and I've also tried using the string "office:font-face-decls", but so far, no dice. I've been searching the web, but nothing seems to be doing the trick.

I'll keep looking but any assistance will be appreciated.

Thanks!
Brian
Brian Moakley
Greenhorn

Joined: Apr 12, 2007
Posts: 11
I think I found the solution to my problem ... here is my reference:

http://www.cafeconleche.org/books/xmljava/chapters/ch14s06.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDOM parsing