Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDOM parsing

 
Brian Moakley
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I found the solution to my problem ... here is my reference:

http://www.cafeconleche.org/books/xmljava/chapters/ch14s06.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic