Questions tagged [qnames]

qnames is intended for questions related to XML namespacing and scoping of namespace declarations.

qnames(qualified names) are composed of a prefix name and a local name. The prefix name is mapped to a schema URI which contains a definition of the local name. For example the qnames for fully qualified HTML elements is explicitly written as:

<html:html xmlns:html='http://www.w3.org/1999/xhtml'>
  <html:head><html:title>Example</html:title></html:head>
  <html:body>
    <html:a href="http://www.example.com">Example URI</html:a> 
  </html:body>
</html:html>

When used solely in element and attribute names, all QNames are identified by the XML processor and can logically be replaced by the URI/local-name pair they identify.

XSLT processors use qnames to identify the namespace of values.

References

31 questions
0
votes
1 answer

How can I find all elements in an XML Schema whose value is specified as a QName?

Suppose that... I have a complex XML schema, one that imports/includes other schema files, which in turn import/include even more schema files. I want to find all the elements in this XML schema that have a value (i.e., text node) that is…
james.garriss
  • 12,959
  • 7
  • 83
  • 96
0
votes
1 answer

Namespace resolving for an unprefixed text value of an XML element of type xs:QName (XSD 1.1)

I've been given conflicting information on how an XML Schema 1.1 based XML validator validates element text values that are supposed to conform to the xs:QName primitive datatype when they are not prefixed.
predi
  • 5,528
  • 32
  • 60
0
votes
3 answers

How should I resolve and compare two QNames using XPath for XSLT?

I want to test, within an XSLT document, whether an attribute value of type QName from the input XML is equal to another QName from the XSLT document. I want to evaluate each QName according to its parent document namespace declarations before the…
0
votes
1 answer

Namespace defined through QName is not shown in xsi:type attribute leading to validation failure

Here is my problem. I have an xsd in which the need of polymorphism is answered by the use of xs:extension as follows:
Loïc Gammaitoni
  • 4,173
  • 16
  • 39
0
votes
1 answer

importing QName in Android

I have used wsdl2java in order to convert a wsdl file into java files. The java files that are created are using class javax.xml.namespace.QName However, Android is not recognizing this class. Can anyone tell me how do I add support for…
Farhan
  • 3,206
  • 14
  • 49
  • 62
0
votes
1 answer

Can't remove unecessary element from QName

I'm trying to add namespaces in a xml that I'm generating so I tried this and came up with the code below: from xml.etree import ElementTree as ET NS1 = "http://www.w3.org/" ET.register_namespace("xsi", NS1) qname1 = ET.QName(NS1, "D") #…
Jack
  • 695
  • 10
  • 29
0
votes
0 answers

QName is accessible from more than one module - OpenJDK 11?

I have a QName reference problem in my project in eclipse, using JDK 11. The package org.w3c.dom is accessible from more than one module: , java.xml I have looked for all class references, and if you can help me with this…
Junior
  • 1
0
votes
1 answer

What is xdmp:value??? XQuery, MarkLogic

I learned xdmp:value function. Use like this let $var := 5 return xdmp:value($var) Then, I get 5. What is difference when I write this: let $var := 5 return $var I also get 5 here. Maybe I miss some points. Please explain this function. THANKS IN…
tesnirs
  • 57
  • 6
0
votes
2 answers

XML: Using wildcard with required attribute of type xs:QName

My XML schema has the rule: I want to be able to provide a wildcard to my XML rule file for this tag e.g. Normally the value of the…
Kalle
  • 1
0
votes
1 answer

JAX-WS: Assembling the enunciate app using CXF

I am customizing an appfuse 3.0.0 Web Service Only artifact. I have faced this stacktrace when trying to add a checked exception to my Web Service: [ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-cxf-plugin:1.28:assemble…
Kayvan Tehrani
  • 3,070
  • 2
  • 32
  • 46
0
votes
2 answers

Get qualified name of an XML element and it's child nodes with C#

Edited: I'm trying to accomplish three things here: get XmlNode Query, get the XmlNode QueryId and get the value of a:schemaLocation but the after parsing they end up as null. If I remove the qualified name from the XML, the C# bit works fine. How…
tomtomssi
  • 1,017
  • 5
  • 20
  • 33
0
votes
2 answers

XSLT namespace error failed to parse qname

Good folks at stackoverflow... I am trying to create a XSLT transformation that will generate a Turtle file (RDF related). Part of that involves output of prefixed namespaces, something like this:
johnaco
  • 175
  • 1
  • 3
  • 16
0
votes
1 answer

"prefix is null" error when attempting to set up web service client

I have a WSDL and some schema files that I used to generate a JAX-WS web service client. When I try to get an instance of the client, I get this stack trace: Caused by: java.lang.IllegalArgumentException: The specified prefix was null. at…
FrustratedWithFormsDesigner
  • 26,726
  • 31
  • 139
  • 202
0
votes
1 answer

XmlDocument.Save doesn't output full QNames for Elements

I've encountered an issue whereby when I create an XML Document programmatically using the System.Xml classes and then use the Save method the output XML doesn't use QNames for the Nodes and just uses local names. eg Desired Output
RobV
  • 28,022
  • 11
  • 77
  • 119
-1
votes
1 answer

Creation of QName takes default namesapce prefix rather than the provided parameter

I am using the JaxB Marshalling to create the XML. My XML I have few custom fields which I am creating using the JAXB XmlAdapter option. The custom fields are created using the JAXBElement, in which QName is one of the parameters. As per the QName…
BATMAN_2008
  • 2,788
  • 3
  • 31
  • 98