Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
bea-stax
bea-stax-gcj-build.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bea-stax-gcj-build.patch of Package bea-stax
--- src/com/bea/xml/stream/AttributeBase.java +++ src/com/bea/xml/stream/AttributeBase.java @@ -86,7 +86,7 @@ public boolean isNamespaceDeclaration() { return false; } public String getLocalName() { return name.getLocalPart(); } public String getValue() { return value; } - public String getDTDType() { return "CDATA"; } + public javax.xml.namespace.QName getDTDType() { return new javax.xml.namespace.QName("CDATA"); } public String getNamespaceURI() { return name.getNamespaceURI();} public void setNamespaceURI(String uri) { name = new QName(uri,name.getLocalPart()); } --- src/com/bea/xml/stream/StaticAllocator.java +++ src/com/bea/xml/stream/StaticAllocator.java @@ -90,7 +90,7 @@ Iterator ni = XMLEventAllocatorBase.getNamespaces(reader); while (ni.hasNext()) - startElement.addAttribute((Namespace)ni.next()); + startElement.addAttribute((Attribute)ni.next()); return startElement; } --- src/com/bea/xml/stream/samples/Parse.java +++ src/com/bea/xml/stream/samples/Parse.java @@ -122,11 +122,12 @@ } private static void printNamespace(Namespace a) { - System.out.println("PREFIX: " + a.getName().getPrefix()); - System.out.println("NAMESP: " + a.getName().getNamespaceURI()); - System.out.println("NAME: " + a.getName().getLocalPart()); - System.out.println("VALUE: " + a.getValue()); - System.out.println("TYPE: " + a.getDTDType()); + Attribute at = (Attribute) a; + System.out.println("PREFIX: " + at.getName().getPrefix()); + System.out.println("NAMESP: " + at.getName().getNamespaceURI()); + System.out.println("NAME: " + at.getName().getLocalPart()); + System.out.println("VALUE: " + at.getValue()); + System.out.println("TYPE: " + at.getDTDType()); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor