expectedOutput
上传用户:zhuqijet
上传日期:2013-06-25
资源大小:10074k
文件大小:17k
源码类别:

词法分析

开发平台:

Visual C++

  1. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  2. <docEle xmlns="http://www.test.com">
  3.   <docEleChild xmlns="http://www.test2.com"/>
  4. </docEle>
  5. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  6. <po:docEle xmlns:po="http://www.test.com" xmlns="http://www.test.com">
  7.   <docEleChild xmlns="http://www.test2.com"/>
  8. </po:docEle>
  9. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  10. <po:docEle xmlns:po="http://www.test.com" xmlns="http://www.test.com">
  11.   <docEleChild xmlns="http://www.test2.com">
  12.     <docEleChildChild/>
  13.   </docEleChild>
  14. </po:docEle>
  15. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  16. <po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">
  17.   <po2:docEleChild>
  18.     <docEleChildChild xmlns="http://www.test2.com"/>
  19.   </po2:docEleChild>
  20. </po:docEle>
  21. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  22. <po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">
  23.   <po2:docEleChild>
  24.     <docEleChildChild xmlns="http://www.test2.com"/>
  25.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  26.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  27.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  28.   </po2:docEleChild>
  29. </po:docEle>
  30. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  31. <po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">
  32.   <po2:docEleChild>
  33.     <docEleChildChild xmlns="http://www.test2.com"/>
  34.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  35.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  36.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  37.   </po2:docEleChild>
  38. </po:docEle>
  39. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  40. <po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">
  41.   <po2:docEleChild>
  42.     <docEleChildChild xmlns="http://www.test2.com"/>
  43.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  44.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  45.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  46.     <docEleChildChild5 xmlns="http://www.test4.com"/>
  47.   </po2:docEleChild>
  48. </po:docEle>
  49. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  50. <po:docEle xmlns:po="http://www.test.com" xmlns:po2="http://www.test2.com">
  51.   <po2:docEleChild>
  52.     <docEleChildChild xmlns="http://www.test2.com"/>
  53.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  54.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  55.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  56.     <docEleChildChild5 xmlns="http://www.test4.com">
  57.       <noNamespace xmlns=""/>
  58.     </docEleChildChild5>
  59.   </po2:docEleChild>
  60. </po:docEle>
  61. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  62. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  63.   <po2:docEleChild>
  64.     <docEleChildChild xmlns="http://www.test2.com"/>
  65.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  66.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  67.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  68.     <docEleChildChild5 xmlns="http://www.test4.com">
  69.       <noNamespace xmlns=""/>
  70.     </docEleChildChild5>
  71.   </po2:docEleChild>
  72. </po:docEle>
  73. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  74. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  75.   <po2:docEleChild>
  76.     <docEleChildChild xmlns="http://www.test2.com"/>
  77.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  78.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  79.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  80.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  81.       <noNamespace xmlns=""/>
  82.     </docEleChildChild5>
  83.   </po2:docEleChild>
  84. </po:docEle>
  85. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  86. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  87.   <po2:docEleChild>
  88.     <docEleChildChild xmlns="http://www.test2.com"/>
  89.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  90.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  91.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  92.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  93.       <noNamespace xmlns=""/>
  94.     </docEleChildChild5>
  95.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value"/>
  96.   </po2:docEleChild>
  97. </po:docEle>
  98. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  99. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  100.   <po2:docEleChild>
  101.     <docEleChildChild xmlns="http://www.test2.com"/>
  102.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  103.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  104.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  105.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  106.       <noNamespace xmlns=""/>
  107.     </docEleChildChild5>
  108.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
  109.       <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
  110.     </docEleChildChild6>
  111.   </po2:docEleChild>
  112. </po:docEle>
  113. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  114. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  115.   <po2:docEleChild>
  116.     <docEleChildChild xmlns="http://www.test2.com"/>
  117.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  118.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  119.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  120.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  121.       <noNamespace xmlns="" xmlns:NS1="">
  122.         <testing1.1Stuff xmlns="http://testclash.com"/>
  123.       </noNamespace>
  124.     </docEleChildChild5>
  125.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
  126.       <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
  127.     </docEleChildChild6>
  128.   </po2:docEleChild>
  129. </po:docEle>
  130. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  131. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  132.   <po2:docEleChild>
  133.     <docEleChildChild xmlns="http://www.test2.com"/>
  134.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  135.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  136.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  137.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  138.       <noNamespace xmlns="" xmlns:NS1="">
  139.         <testing1.1Stuff xmlns="http://testclash.com"/>
  140.         <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
  141.       </noNamespace>
  142.     </docEleChildChild5>
  143.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
  144.       <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
  145.     </docEleChildChild6>
  146.   </po2:docEleChild>
  147. </po:docEle>
  148. error conditions
  149. Fatal Message: Namespace fixup cannot be performed on a DOM Level 1 Node.
  150. Related data level1Node
  151. Fatal Message: Namespace fixup cannot be performed on a DOM Level 1 Node.
  152. Related data level1Attr
  153. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  154. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  155.   <po2:docEleChild>
  156.     <docEleChildChild xmlns="http://www.test2.com"/>
  157.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  158.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  159.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  160.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  161.       <noNamespace xmlns="" xmlns:NS1="">
  162.         <testing1.1Stuff xmlns="http://testclash.com"/>
  163.         <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
  164.       </noNamespace>
  165.     </docEleChildChild5>
  166.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
  167.       <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
  168.     </docEleChildChild6>
  169.   </po2:docEleChild>
  170.   <!--some comment-->
  171. </po:docEle>
  172. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  173. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  174.   <po2:docEleChild>
  175.     <docEleChildChild xmlns="http://www.test2.com"/>
  176.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  177.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  178.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  179.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  180.       <noNamespace xmlns="" xmlns:NS1="">
  181.         <testing1.1Stuff xmlns="http://testclash.com"/>
  182.         <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
  183.       </noNamespace>
  184.     </docEleChildChild5>
  185.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
  186.       <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
  187.     </docEleChildChild6>
  188.   </po2:docEleChild>
  189. </po:docEle>
  190. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  191. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  192.   <po2:docEleChild>
  193.     <docEleChildChild xmlns="http://www.test2.com"/>
  194.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  195.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  196.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  197.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  198.       <noNamespace xmlns="" xmlns:NS1="">
  199.         <testing1.1Stuff xmlns="http://testclash.com"/>
  200.         <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
  201.       </noNamespace>
  202.     </docEleChildChild5>
  203.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
  204.       <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
  205.     </docEleChildChild6>
  206.   </po2:docEleChild>
  207.   
  208.   <![CDATA[some cdata]]>
  209. </po:docEle>
  210. <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  211. <po:docEle xmlns:po="http://www.test.com" xmlns:NS1="http://testattr.com" NS1:attr1="value" NS1:attr2="value" xmlns:NS2="http://testattr2.com" NS2:attr3="value" po:attr4="value" xmlns:po3="http://testattr3.com" po3:attr7="value" NS2:attr5="value" NS2:attr6="value" xmlns:po2="http://www.test2.com">
  212.   <po2:docEleChild>
  213.     <docEleChildChild xmlns="http://www.test2.com"/>
  214.     <docEleChildChild2 xmlns="http://www.test3.com"/>
  215.     <po4:docEleChildChild3 xmlns:po4="http://www.test4.com"/>
  216.     <po4:docEleChildChild4 xmlns:po4="http://www.test4.com"/>
  217.     <docEleChildChild5 xmlns="http://www.test4.com" xmlns:NS1="http://testclash.com" NS1:attr9="value" xmlns:NS3="http://testattr.com" NS3:attr1="value" NS3:attr2="value" NS2:attr3="value" po:attr4="value" po3:attr7="value" xmlns:po4="http://testattr4.com" po4:attr8="value" xmlns:NS4="http://testattr5.com" NS4:attr10="value" NS2:attr5="value" NS2:attr6="value">
  218.       <noNamespace xmlns="" xmlns:NS1="">
  219.         <testing1.1Stuff xmlns="http://testclash.com"/>
  220.         <NS1:testing1.1Stuff xmlns:NS5="http://www.someRandomUri.com" NS5:attr="value" xmlns:NS1="http://testclash.com"/>
  221.       </noNamespace>
  222.     </docEleChildChild5>
  223.     <docEleChildChild6 xmlns="http://www.uri1.com" xmlns:uri1="http://www.uri1.com" uri1:attr1="value" xmlns:uri1b="http://www.uri1.com" uri1b:attr2="value" xmlns:nearerThanPo="http://www.test.com">
  224.       <docEleChildChildChild nearerThanPo:attr1="value" NS1:attr2="value"/>
  225.     </docEleChildChild6>
  226.   </po2:docEleChild>some cdata
  227. </po:docEle>