以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  怎样解析DOM,得到xml文件中的 encoding,以及standalone属性的值呢?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=43527)


--  作者:samyp1234
--  发布时间:3/1/2007 4:09:00 PM

--  怎样解析DOM,得到xml文件中的 encoding,以及standalone属性的值呢?
怎样解析DOM,得到xml文件中的 encoding,以及standalone属性的值呢?

似乎没有找到函数啊,谢谢大家啊。


--  作者:flyfoxs
--  发布时间:3/6/2007 8:18:00 PM

--  
这是JAVA语言中的DOM函数。

getInputEncoding()
          An attribute specifying the encoding used for this document at the time of the parsing.

getXmlStandalone()
          An attribute specifying, as part of the XML declaration, whether this document is standalone.

希望对你有用。


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms