比如:<?xml version="1.0" encoding="utf-8" ?>
<ManualDatas>
  <ManualData>
    <ID></ID>
    <QueryID></QueryID>
    <Response></Response>
    <State></State>
    <KnowledgeURL></KnowledgeURL>
    <ManualID></ManualID>
    <ReplyType></ReplyType>
    <EventSeconds></EventSeconds>
  </ManualData>
  <ManualData>
    <ID></ID>
    <QueryID></QueryID>
    <Response></Response>
    <State></State>
    <KnowledgeURL></KnowledgeURL>
    <ManualID></ManualID>
    <ReplyType></ReplyType>
    <EventSeconds></EventSeconds>
  </ManualData>
</ManualDatas>
网上找了些例子,但都是解析xml文件的,没找到解析xml字符串的。而且即使是解析xml文件的,xmldom.getNodeValue这句话老是编译通不过报出 "getnodevalue" is not a procedure or is undefined...不解。望各位高手指点。。

解决方案 »

  1.   

    一样的处理方法啊,XML文件也是转换成流来处理的
    你把字符串作为流来处理就好了啊
      

  2.   

    谢谢楼上,能稍微具体吗?  xmlPar := xmlparser.newParser;   xmlparser.parse(xmlPar, ?); 那个问号的地方我看了都是传一个文件的路径的,我直接传个xml字符串行吗?
      

  3.   

    补充一点,我觉得这种应用应该是有的,比如我要传多个记录进去,把记录包装成xml字符串让存储过程去做不就好了吗?sql server 就能解析的。但不知道oracle 怎么玩法。
      

  4.   

    看看这个  应该就可以解决了
    parse() if the XML input is a file --文件解析
    parseBuffer() if the XML input is an varchar buffer 变量解析 
    parserClob() if the XML input is a CLOB  字段值解析
      

  5.   

    楼主的确不厚道
    不过各位自己揣摩下下就可以出来的吧,xmlparser的方法一个个是过去,有字符串入参的不就能用了
    比如这个:xmlparser.parseBuffer