Searched refs:namespace (Results 1 - 19 of 19) sorted by relevance

/libcore/luni/src/main/java/javax/xml/xpath/
H A DXPathFunctionResolver.java21 import javax.xml.namespace.QName;
31 * namespace (functions with an explicit prefix). This means that you cannot
35 * same namespace. This is a consequence of the design of the resolver.</p>
H A DXPathVariableResolver.java21 import javax.xml.namespace.QName;
H A DXPathConstants.java21 import javax.xml.namespace.QName;
H A DXPath.java21 import javax.xml.namespace.NamespaceContext;
22 import javax.xml.namespace.QName;
66 * QNames in the expression are resolved against the XPath namespace context
144 * <p>Establish a namespace context.</p>
155 * <p>Return the current namespace context.</p>
157 * <p><code>null</code> is returned in no namespace context is in effect.</p>
H A DXPathExpression.java21 import javax.xml.namespace.QName;
63 * QNames in the expression are resolved against the XPath namespace context.
/libcore/luni/src/main/java/javax/xml/namespace/
H A DNamespaceContext.java20 package javax.xml.namespace;
112 * ("http://www.w3.org/XML/1998/namespace")</td>
173 * ("http://www.w3.org/XML/1998/namespace")</td>
234 * ("http://www.w3.org/XML/1998/namespace")</td>
H A DQName.java20 package javax.xml.namespace;
72 * <code>org.apache.xml.namespace.QName.useCompatibleSerialVersionUID</code>
89 String compatPropValue = System.getProperty("org.apache.xml.namespace.QName.useCompatibleSerialVersionUID");
/libcore/luni/src/test/java/libcore/xml/
H A DNamespacedAttributesLookupTest.java33 * names for different combinations of namespaces and namespace prefixes.
40 "http://xml.org/sax/features/namespace-prefixes";
67 boolean namespace = true;
69 assertEquals(expected, getStartElements(xml, namespace, namespacePrefixes));
94 boolean namespace = false;
96 assertEquals(expected, getStartElements(xml, namespace, namespacePrefixes));
99 public List<String> getStartElements(String xml, final boolean namespace, boolean namespacePrefixes) argument
103 reader.setFeature(SAX_PROPERTY_NS, namespace);
113 if (namespace) {
121 if (namespace) {
[all...]
H A DXmlPullParserFactoryTest.java167 public void setPrefix(String prefix, String namespace) throws IOException { argument
170 public String getPrefix(String namespace, boolean generatePrefix) throws IllegalArgumentException { argument
186 public XmlSerializer startTag(String namespace, String name) throws IOException { argument
190 public XmlSerializer attribute(String namespace, String name, String value) throws IOException { argument
194 public XmlSerializer endTag(String namespace, String name) throws IOException { argument
346 public String getAttributeValue(String namespace, String name) { argument
362 public void require(int type, String namespace, String name) argument
H A DJaxenXPathTestSuite.java29 import javax.xml.namespace.QName;
/libcore/xml/src/main/java/org/kxml2/io/
H A DKXmlSerializer.java77 throw new IllegalStateException("Cannot set default namespace for elements in no namespace");
189 public String getPrefix(String namespace, boolean create) { argument
191 return getPrefix(namespace, false, create);
199 String namespace,
207 if (nspStack[i + 1].equals(namespace)
228 if (namespace.isEmpty())
247 setPrefix(prefix, namespace);
275 public void setPrefix(String prefix, String namespace) argument
281 if (namespace
198 getPrefix( String namespace, boolean includeDefault, boolean create) argument
370 startTag(String namespace, String name) argument
423 attribute( String namespace, String name, String value) argument
485 endTag(String namespace, String name) argument
[all...]
H A DKXmlParser.java127 * without namespace adjustments. This map is created lazily.
158 private String namespace; field in class:KXmlParser
171 * i + 0 = attribute namespace URI
172 * i + 1 = attribute namespace prefix
185 * Retains namespace attributes like {@code xmlns="http://foo"} or {@code xmlns:foo="http:foo"}
188 * DOM, it is necessary to keep the namespace data around.
222 checkRelaxed("illegal empty namespace");
226 // explicitly set the namespace for unprefixed attributes
282 this.namespace = getNamespace(prefix);
284 if (this.namespace
2030 getAttributeValue(String namespace, String name) argument
2060 require(int type, String namespace, String name) argument
[all...]
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlSerializer.java121 * Binds the given prefix to the given namespace.
123 * The prefix and namespace MUST be always declared even if prefix
125 * it must result in declaring <code>xmlns:prefix='namespace'</code>
126 * (or <code>xmlns:prefix="namespace"</code> depending what character is used
134 * <p><b>NOTE:</b> to set default namespace use as prefix empty string.
137 * @param namespace must be not null
139 void setPrefix (String prefix, String namespace) argument
143 * Return namespace that corresponds to given prefix
144 * If there is no prefix bound to this namespace return null
147 * <p><b>NOTE:</b> if the prefix is empty string "" and default namespace i
154 getPrefix(String namespace, boolean generatePrefix) argument
209 startTag(String namespace, String name) argument
219 attribute(String namespace, String name, String value) argument
230 endTag(String namespace, String name) argument
[all...]
H A DXmlPullParser.java143 /** This constant represents the default namespace (empty string "") */
177 * The name of start tag is available from getName(), its namespace and prefix are
200 * namespace and prefix are
346 // namespace related features
361 * This feature determines whether namespace attributes are
370 "http://xmlpull.org/v1/doc/features.html#report-namespace-prefixes";
409 * such as namespace processing or doctype declaration handling.
413 * to switch on namespace processing. The initial settings correspond
541 * Returns the numbers of elements in the namespace stack for the given
546 * this function with getDepth()+1 argument to retrieve position of namespace
900 getAttributeValue(String namespace, String name) argument
1048 require(int type, String namespace, String name) argument
[all...]
/libcore/luni/src/main/java/javax/xml/datatype/
H A DDatatypeConstants.java23 import javax.xml.namespace.QName;
H A DXMLGregorianCalendar.java26 import javax.xml.namespace.QName;
H A DDuration.java27 import javax.xml.namespace.QName;
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
H A DDocumentBuilderImpl.java258 * depending on whether the parser is namespace-aware or not.
262 String namespace = parser.getNamespace();
266 if ("".equals(namespace)) {
267 namespace = null;
271 Element element = document.createElementNS(namespace, name);
298 parser.require(XmlPullParser.END_TAG, namespace, name);
385 * Controls whether this DocumentBuilder is namespace-aware.
/libcore/xml/src/main/java/org/xmlpull/v1/sax2/
H A DDriver.java57 "http://xml.org/sax/features/namespace-prefixes";
465 protected void startElement(String namespace, String localName, String qName) throws SAXException { argument
466 contentHandler.startElement(namespace, localName, qName, this);

Completed in 156 milliseconds