• robforce
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

I'm trying to load a Dom.Document with some XML I got from an API call. The returned XML includes nodes with CDATA. After loading the XML in the Document, the CDATA nodes are all empty. The XML is a little on the large side and using Ron Hess's XMLDom parser class hits the script statement governor limit. Does anyone have a solution for this?

I'm trying to load a Dom.Document with some XML I got from an API call. The returned XML includes nodes with CDATA. After loading the XML in the Document, the CDATA nodes are all empty. The XML is a little on the large side and using Ron Hess's XMLDom parser class hits the script statement governor limit. Does anyone have a solution for this?

Does anyone know if the DOM Classes (Dom.Document and Dom.XmlNode) support the ![CDATA[]] construct.

 

It appears that if I include a node in an xml document with CDATA text, navigate to the node and then call getText() on it, it returns the raw entry with the full "!CDATA[.....]]".  Even worse, if the CDATA block includes "<" or ">" Dom.XmlNode.load() throws a parse exception.  Is there a way to make this work?

 

Thanks,

Tom