jQuery in Action, 3rd edition
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

JDOM parsing

Brian Moakley

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.

Brian Moakley

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

I agree. Here's the link: http://aspose.com/file-tools
subject: JDOM parsing
It's not a secret anymore!