xml转document问题
发布时间:2020-12-16 05:52:59 所属栏目:百科 来源:网络整理
导读:1.The markup in the document following the root element must be well-formed, 如: String xmlString = "?xml version='1.0' encoding='utf-8'?" 我的问题是组装的xml,组节点后面没有加n(回车) 改成:String xmlString = "?xml version='1.0' encodi
1.The markup in the document following the root element must be well-formed, 如: String xmlString = "<?xml version='1.0' encoding='utf-8'?>" 我的问题是组装的xml,组节点后面没有加n(回车) 改成:String xmlString = "<?xml version='1.0' encoding='utf-8'?>n"
2.White space is required between the processing instruction target and data. 如: String xml="<?xmlversion='1.0' encoding='utf-8'?>" 这个是因为xml 与version 之间没有空格 改成:String xmlString = "<?xml version='1.0' encoding='utf-8'?>n" (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |