随笔分类 -  XML Study

xml serialize
摘要:http://www.cnblogs.com/yukaizhao/archive/2011/07/22/xml-serialization.html自己也要写个Demo... 阅读全文
posted @ 2012-12-05 17:37 higirle 阅读(159) 评论(0) 推荐(0)
读取含有命名空间xml文件内容
摘要:.NET Language-Integrated Query for XML Datahttp://msdn.microsoft.com/library/bb308960.aspxXNamespace myNs = "http://mycompany.com";XElement contacts = new XElement(myNs + "contacts", new XElement(myNs + "contact", new XElement(myNs + "name", "Patrick Hine 阅读全文
posted @ 2012-12-05 17:36 higirle 阅读(2446) 评论(0) 推荐(0)
XML 读写(命名空间)
摘要:http://www.w3school.com.cn/xml/xml_namespaces.asp (XML命名空间和xml详细内容)http://www.w3.org/TR/REC-xml-names/ 处理含有xml命名空间的读取http://www.cnblogs.com/martin-chen/archive/2011/02/24/xml-studynote-namespace.htmlhttp://msdn.microsoft.com/zh-cn/library/system.xml.xmlwriter.aspx (.net实现xml读写)UTF8:Many Windows prog 阅读全文
posted @ 2012-07-04 11:38 higirle 阅读(369) 评论(0) 推荐(0)
XML 解析方法(1)
摘要:publicstaticstringTryGetElementValue(thisXElementparentEl,stringelementName,stringdefaultValue=null){varfoundEl=parentEl.Element(elementName);if(foundEl!=null){returnfoundEl.Value;}else{returndefaultValue;publicstaticstringTryGetElementAttribute(thisXElementelement,stringattributeName,stringdefaultV 阅读全文
posted @ 2012-01-12 17:25 higirle 阅读(237) 评论(0) 推荐(0)
XML解析
摘要:下面是xml解析的代码:privatevoidreadEnvelope(stringstr){//<soap:Envelopexmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body//xmlns:amp="http://schemas.altigen.com/mobility/"><amp:Session>c2lwOmtpbm8uc29uZ0BtY3MuY29tO29wYXF1ZT11c2VyOmVwaWQ6VEJsMkNHVlRmMS1TZ0 阅读全文
posted @ 2012-01-11 14:33 higirle 阅读(331) 评论(0) 推荐(0)
XML CDATA
摘要:http://www.w3schools.com/xml/xml_cdata.aspAll text in an XML document will be parsed by the parser.But text inside a CDATA section will be ignored by the parser.PCDATA - Parsed Character DataXML parsers normally parse all the text in an XML document.When an XML element is parsed, the text between th 阅读全文
posted @ 2011-12-01 09:04 higirle 阅读(305) 评论(0) 推荐(0)