xml-namespaces

XSLT transformation to produce valid XHTML: a namespace issue

做~自己de王妃 提交于 2019-12-12 20:18:51
问题 I have seen this resource link text but I still have troubles generating a valid XHTML document using MSXML parser. I have in input the following document: <?xml version="1.0" encoding="UTF-8" ?> - <html xml:lang="it" xmlns="http://www.w3.org/1999/xhtml"> - <head xmlns=""> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Bla bla bla</title> <link rel="stylesheet" type="text/css" media="screen" href="css/bla.css" /> </head> - <body xmlns="" style="background-color:

php soap envelope namespace <soap:Envelope and <SOAP-ENV:Envelope

本秂侑毒 提交于 2019-12-12 17:18:36
问题 What is the difference between <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" ...> and <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" ...> and how can I switch between them? How can I change the response from < SOAP-ENV:Envelope to use < soap:Envelope ? 回答1: There is no difference. The XML namespace is referenced by the xmlns attribute as it's value ( "http://schemas.xmlsoap.org/soap/envelope/" ), and the shortcut to that reference is

Are there any disadvantages to setNamespaceAware(true)?

不想你离开。 提交于 2019-12-12 12:49:35
问题 I was parsing an XML document, in Java, using the following code: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Element el = db.parse(file).getDocumentElement(); However, when parsing an XML document that uses namespaces, I get the error: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces. at org.apache.xerces.dom.ElementNSImpl

remove xmlns attribute from the root element while marshalling jaxb

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 08:09:28
问题 This might be a related to JAXB Marshaller - How do I suppress xmlns namespace attributes? But my problem is a little different. I do the regular java marshalling and my xsd has no namespaces.The generated xml is without namespaces as well, except for the root element. <?xml version="1.0" encoding="UTF-8"?><rootElement xmlns:ns2="unwanted namespace"> The unwanted namespace is from another schema from the same project and I am not sure why that is being picked up at this stage. My rootElement

XSLT with multiple namespaces

╄→尐↘猪︶ㄣ 提交于 2019-12-12 06:14:10
问题 I am quite new to stylesheets, so I am having some elementary problems. Here is my XML: <NS1:Envelope xmlns:NS1="http://blahblahblah"> <NS1:Body> <NS2:STR xmlns:NS2="http://blahblah"> <NS2:STD> <NS2:ST>CA</NS2:ST> <NS2:CTY>Los Angeles</NS2:CTY> <NS2:CY>Artesia</NS2:CY> <NS2:STGC>05</NS2:STGC> <NS2:CTYGC>037</NS2:CTYGC> <NS2:CYGC>0160</NS2:CYGC> <NS2:GC>050370160</NS2:GC> <NS2:STTR>0.065000</NS2:STTR> <NS2:CTYTR>0.025000</NS2:CTYTR> <NS2:CYTR>0.000000</NS2:CYTR> <NS2:TotalTR>0.090000</NS2

Why am I being told a class does not exist in my namespace when it does?

自闭症网瘾萝莉.ら 提交于 2019-12-12 05:57:51
问题 I am trying to follow the article here to add a custom control to my project so that I can call it ("promptForPhotosetName") like so: Popup popTart = new Popup(); popTart.Child = new promptForPhotosetName(); popTart.IsOpen = true; I added a Custom Control to my project based on Templated Control. My custom control class (which IS in the Photrax namespace) contains this constructor: public promptForPhotosetName() { this.DefaultStyleKey = typeof(promptForPhotosetName); } I have this in \Themes

Do browsers support an HTML document with markup that uses namespaces (see code)?

时间秒杀一切 提交于 2019-12-12 04:52:58
问题 It seems like it's possible to use namespaces in an HTML document. Although, I've never seen it done. If I used namespaces in my document would browsers render it correctly? Here is your HTML: <html> <head> </head> <body> <input type="button"/> </body> </html> Here is your HTML on namespaces: <h:html xmlns:h="http://www.w3.org/1999/xhtml"> <h:head> </h:head> <h:body> <h:input type="button"/> <svg:svg xmlns="http://www.w3.org/2000/svg"/> </h:body> </h:html> Any questions? FYI SVG uses

How to ignore namespace when unmarshalling XML file

浪尽此生 提交于 2019-12-12 04:06:57
问题 when the source file have the namespace with: xmlns="http://schemas.alcatel.com/iptv/singtel" the error will be raise: Encountered an error executing step sma-updstbparams.processfile in job sma-updstbparams org.springframework.oxm.UnmarshallingFailureException: JAXB unmarshalling exception; nested exception is javax.xml.bind.UnmarshalException - with linked exception: [com.sun.istack.internal.SAXParseException2; lineNumber: 3; columnNumber: 24; unexpected element (uri:"http://schemas.alcatel

Detecting Xml namespace fast

霸气de小男生 提交于 2019-12-12 03:46:10
问题 This may be a very trivial problem I'm trying to solve, but I'm sure there's a better way of doing it. So please go easy on me. I have a bunch of XSD files that are internal to our application, we have about 20-30 Xml files that implement datasets based off those XSDs. Some Xml files are small (<100Kb), others are about 3-4Mb with a few being over 10Mb. I need to find a way of working out what namespace these Xml files are in order to provide (something like) intellisense based off the XSD.

xquery: find if a parent node has a child node of a different namespace

烂漫一生 提交于 2019-12-12 03:39:10
问题 I am trying to check if a node of namespace 'X' has a child node of a different namespace 'Y'. I tried the following xquery: declare namespace atom = "http://www.w3.org/2005/Atom"; declare namespace libx = "http://libx.org/xml/libx2"; let $doc := <node><entries xmlns="http://www.w3.org/2005/Atom" xmlns:libx="http://libx.org/xml/libx2"> <libx:book-entry><book>Book 1</book><author>Author 1 PQR</author><title>Title 1</title></libx:book-entry> <libx:car-entry><car>Car 1</car><model>Model 1</model