xml-namespaces

Namespace in XML element value?

浪尽此生 提交于 2019-12-02 05:56:32
I recently stumbled across this: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <s:Header> <a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/04/discovery/Probe</a:Action> <a:MessageID>uuid:21859bf9-6193-4c8a-ad50-d082e6d296ab</a:MessageID> <a:ReplyTo> <a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address> </a:ReplyTo> <a:To s:mustUnderstand="1">urn:schemas-xmlsoap-org:ws:2005:04:discovery</a:To> </s:Header> <s:Body> <Probe xmlns="http://schemas.xmlsoap.org/ws/2005/04

c# WPF AlternateContent doesn't exist in the Namespace […]

女生的网名这么多〃 提交于 2019-12-02 04:25:30
问题 I am facing the need to have XAML Code only in design-time. I have found a nice Solution to this, which can be found here. It seems like there are a few guys having a Problem with the parse-timing of XmlnsDefinitionAttribute which is solved here. In my case the issue is really, that I cannot compile my code, because AlternateContent can't be found in the namespace xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" . I haven't found any documentation to this namespace

trouble getting declared namespaces to work

南笙酒味 提交于 2019-12-02 04:06:27
I am trying to get namespaces written in an external css (two separate files actually). When I run the file on my browser it will not use the declared namespaces. I think that the file is calling the css file but its not applying the namespaced style HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?xml version="1.0" encoding="utf-8"?> <html xmlns:act="http://www.superstarmovies.com/actors" xmlns:mov="http://www.superstarmovies.com/movies" xmlns="http://www.w3.org/1999/xhtml" > <head> <meta http-equiv="Content-Type"

Highcharts adds duplicate xmlns attribute to SVG element in IE

爷,独闯天下 提交于 2019-12-02 03:43:54
问题 I'm using Highcharts to create charts in a PHP web application. Problem is that in IE, the SVG element that is created ends up with duplicate xmlns attributes. It can be seen in the F12 developer tools, HTML tab: (click for larger version) While the chart displays just fine in the browser, it causes a problem when trying to convert it to an image file with Batik, which complains about the duplicate attribute. I've reproduced this in both IE 9 and 10, and also with the demo charts at

Oracle XSLT: default namespace results in empty tags

社会主义新天地 提交于 2019-12-02 03:39:30
I think the best way to ask this question is: How do I specify a default namespace for the root element in the output? Doing this: <xsl:template match="/"> <r xmlns:s"http://www.mycompany.com/s/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.mycompany.com/default/schema" > .... .... Gives me an error in Oracle: ORA-31011: XML Parsing Failed ORA-19201: Error occurred in in XML Processing LPX-00604: Invalid attribute 'nIfNotExist', for attribute 'name' ORA-06512: at SYS.XMLType at line 74 ORA-06512: at line 24 where the 'nIfNotExist' is a template: <xsl:template

Using XPath to extract XOM elements from documents with unnecessary namespaces

流过昼夜 提交于 2019-12-02 03:24:03
问题 I'm trying to parse some HTML returned by an external system with XOM. The HTML looks like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <body> <div> Help I am trapped in a fortune cookie factory </div> </body> </html> (Actually it's significantly messier, but it has this DOCTYPE declaration and these namespace and language declarations, and the

Why are XML namespaces HTTP addresses?

北城余情 提交于 2019-12-02 03:09:56
问题 Even though namespace URIs are not real resources available over HTTP, what is the purpose of XML namespaces? And how are XML parsers related to it? Where their recognition (namespaces) exist? 回答1: The purpose of XML namespaces is explained clearly in Section 1, Motivation and Summary of the W3C Recommendation: Namespaces in XML 1.0 (Third Edition): We envision applications of Extensible Markup Language (XML) where a single XML document may contain elements and attributes (here referred to as

Highcharts adds duplicate xmlns attribute to SVG element in IE

为君一笑 提交于 2019-12-02 01:33:33
I'm using Highcharts to create charts in a PHP web application. Problem is that in IE, the SVG element that is created ends up with duplicate xmlns attributes. It can be seen in the F12 developer tools, HTML tab: (click for larger version) While the chart displays just fine in the browser, it causes a problem when trying to convert it to an image file with Batik, which complains about the duplicate attribute. I've reproduced this in both IE 9 and 10, and also with the demo charts at highcharts.com (which is where the above screenshot was taken). It doesn't happen with Firefox, though. How do I

How do I add a namespace prefix to each node using TXMLDocument

点点圈 提交于 2019-12-02 01:33:17
问题 I used the XML Binding Wizard to create a descendant of TXMLDocument. The files generated by this class would declare the namespace in the root node and create just plain, unadorned nodes for the rest of the document. <?xml version="1.0"?> <RootNode xmlns="URL" xmlns:xsi="URL" xsi:schemaLocation="URL"> <SomeNode> <AnotherNode>Value</AnotherNode> </SomeNode> </RootNode> I've had no trouble reading or validating this at all. However, the processor where these files are sent now requires each

Selecting namespaced XML node attributes with namespace alias instead of URI on an XElement

只谈情不闲聊 提交于 2019-12-02 01:29:01
问题 I'm trying to query out some information from a heavily namespaced XML document and am having some trouble finding attributes that are also namespaced. The XML looks like: <?xml version="1.0" encoding="utf-8" ?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:geo="http://www.geonames.org/ontology#" xmlns:dc="http://purl.org/dc