This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDOM parsing  RSS feed

 
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
Boost this thread!