我要对xml文件中的cdata区中内容进行解析。

解决方案 »

  1.   

    I am not sure about my answer: retrieve the content in CDATA and use String or regular expression to do your own parsing process. You can say bye to DOM after your get the content of CDATA.
      

  2.   

    DOM解析后cdata区中内容成为一个CDATASection结点,其结点类型就是CDATA_SECTION_NODE。
    它是从Text结点继承的,本身并没有增加任何新的Fields或Methods。所以你可以象处理一个Text结点一样来操作它。
      

  3.   

    cdata区中是xml格式的字符串,"Text结点"又是如何操作呢?
      

  4.   

    参考TextNode的API不就一目了然啦。