VerifyError #1025 - default xml namespace and getter function

I have narrowed the problem down to a a few lines. I have
created a simple example of the problem...
// TestClass.as
package {
import flash.events.EventDispatcher;
public class TestClass extends EventDispatcher {
private var _testVar:String;
public function TestClass() {
var testXML:XML = <node1 xmlns="
http://www.testurl.com/"><node2><node3>some
words of wisdom</node3></node2></node1>;
default xml namespace = testXML.namespace("");
_testVar = testXML.node2.node3;
public function get testVar():String {
return _testVar;
// Test.fla - frame 1
import TestClass;
var myTestClass:TestClass = new TestClass();
var someVar:String = myTestClass.testVar;
trace(someVar);
I get the following error...
verify TestClass/get testVar()
stack:
scope: [global Object$ flash.events::EventDispatcher$
TestClass$]
locals: TestClass
0:getlocal0
stack: TestClass
scope: [global Object$ flash.events::EventDispatcher$
TestClass$]
locals: TestClass
1:pushscope
stack:
scope: [global Object$ flash.events::EventDispatcher$
TestClass$] TestClass
locals: TestClass
2:getlocal1
VerifyError: Error #1025: An invalid register 1 was accessed.
at TestClass/get testVar()
at Test_fla::MainTimeline/Test_fla::frame1()
However if I take out the default xml namespace line, and
create a new namespace it will work.
var testNS:Namespace = new Namespace(testXML.namespace(""));
_testVar = testXML.testNS::node2.testNS::node3;
Thoughts??? It's driving me crazy. Thanks in advance...
levi

The attribute should be in the element's namespace. If I run this snippet on the timeline, it outputs the correct values.
var xml:XML =
<xml>
<animal type="sheep" xmlns="http://blabla">
  <name>josh</name>
  <age>2</age>
</animal>
<animal type="cow" xmlns="http://blabla">
  <name>jim</name>
  <age>2</age>
</animal>
</xml>
var ns:Namespace = new Namespace("http://blabla");
default xml namespace = ns;
trace( xml.animal.@type ); // OUTPUT: sheepcow

Similar Messages

  • Default xml namespace and attributes

    Hi,
    I was trying to use default xml namespaces, but came upon something strange.
    I got the following piece of xml:
    <animal type="sheep" xmlns="http://blabla">
        <name>josh</name>
        <age>2</age>
    </animal>
    and the following code
    public static var ns:Namespace = new Namespace("http://blabla");
    var xml:XML; // xml will be read into this var, not going into details here
    public function myfunc():void {
      default xml namespace = ns;
      trace(  xml.animal.@type );
    now for some reason, the elements are correctly traversed using the default namespace. But the attribute isn't found. After a bit of debugging, I found that I could only retrieve the attribute when using xml.animal.attribute(new QName("", "type")). Am I doing something wrong here? Why isn't the attribute in the same default namespace as the element?
    Kind regards,
    Jan

    The attribute should be in the element's namespace. If I run this snippet on the timeline, it outputs the correct values.
    var xml:XML =
    <xml>
    <animal type="sheep" xmlns="http://blabla">
      <name>josh</name>
      <age>2</age>
    </animal>
    <animal type="cow" xmlns="http://blabla">
      <name>jim</name>
      <age>2</age>
    </animal>
    </xml>
    var ns:Namespace = new Namespace("http://blabla");
    default xml namespace = ns;
    trace( xml.animal.@type ); // OUTPUT: sheepcow

  • Default xml namespace = v hangs app

    This is probably due to my relative inexperience with Flex (using FlashBuilder 4.5 and Flex SDK 3.6) but I've got an app that is acting strangely and I'd like to find out what's wrong.
    Briefly, I'm trying to parse some XML (returned from a REST service) and, within a private function, am creating a namespace (call it v). I then use the directive default xml namespace = v. However, upon trying to launch and debug the app it hangs at application startup. The default directive is in a private function (actually a function called only when my HTTP service completes) of a component. Regardless, if I comment out the default directive the application works normally.
    Again, this function isn't even CALLED unless I essentially click a button to access the service, so I have absolutely no idea why it appears to be affecting the loading of my app.
    I have used Google to search for "Flex default xml namespace hangs app" but have found only one reference (in passing, with no solution offered).
    Thanks for any pointers.

    I will try at some point but I can't cut down my current app to do it, it's just too large.
    However, I did debug the app and I saw what the problem is. My view component, located in (for example) com.xyz.myapp.view, loads several other components, all located in com.xyz.myapp.components. As a result, the Panel component in the View contains  (among other directives) xmlns:components="com.xyz.myapp.components.*". Both the namespace variable v and the default xml namespace directive are in a private function in one of the components the main view loads. When I ran the app under the debugger it terminated almost immediately with "Error 1065: variable com.xyz.mypp.components::v is not defined".
    That's all I can tell you for now.
    Thanks for the reply.

  • Issue with XML namespace and Message structure

    Hi All,
    I am using Oracle SOA Suite 11.1.1.4. I have SOA web service application one-way messaging wherein I keep receiving messages from the third party. The issue I am facing is with the XML namespaces which conflicts with the third party's message structure. The details are as below.
    Our Web-service WSDL*
    <schema attributeFormDefault="unqualified" elementFormDefault="qualified"
    targetNamespace="http://amb.com/cad/RealTimeService"
    xmlns:cad="http://amb.com/cad/RealTimeService"
    xmlns:avl="http://schemas.com/asiapac/cad/datamodel/avl/1.0.0"
    xmlns:evn="http://schemas.com/asiapac/cad/datamodel/event/1.0.0"
    xmlns:uni="http://schemas.com/asiapac/cad/datamodel/unit/1.0.0"
    xmlns:dvt="http://schemas.com/asiapac/cad/datamodel/divert/1.0.0"
    xmlns:sui="http://schemas.com/asiapac/cad/datamodel/suppinfo/1.0.0"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.com/cad/datamodel/avl/1.0.0"
    schemaLocation="AvlCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/unit/1.0.0"
    schemaLocation="UnitCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/event/1.0.0"
    schemaLocation="EventCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/divert/1.0.0"
    schemaLocation="HewsCadSchema.xsd"/>
    <import namespace="http://schemas.com/cad/datamodel/suppinfo/1.0.0"
    schemaLocation="SupplementalInformationCadSchema.xsd"/>
    <element name="AvlAuxData" type="avl:AvlAuxData" nillable="true"/>
    <element name="AgencyEvent" type="evn:AgencyEvent"/>
    <element name="Diversion" type="dvt:HospitalDiversionMessage"/>
    <element name="SupplementalInformation" type="sui:SupplementalInformation"/>
    <element name="UnitDetail" type="uni:UnitDetail"/>
    </schema>
    Using SOAP UI tool a HospitalDiversionMessage Request for the above WSDL will look like*
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:real="http://amb.com/cad/RealTimeService" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <*real*:Diversion>
    <ns:Action>?</ns:Action>
    <ns:Open>?</ns:Open>
    <!--Optional:-->
    <ns:Location>?</ns:Location>
    <ns:Type>?</ns:Type>
    <ns:SubType>?</ns:SubType>
    <!--Optional:-->
    <ns:ExpiryTimestamp>?</ns:ExpiryTimestamp>
    <!--Optional:-->
    <ns:Comment>?</ns:Comment>
    <!--Optional:-->
    <ns:ItemNumber>?</ns:ItemNumber>
    <!--Optional:-->
    <ns:Notifications>?</ns:Notifications>
    <ns:CreatedTerminal>?</ns:CreatedTerminal>
    <ns:CreatedTimestamp>?</ns:CreatedTimestamp>
    <!--Optional:-->
    <ns:ClosedBy>?</ns:ClosedBy>
    <!--Optional:-->
    <ns:ClosedComments>?</ns:ClosedComments>
    <!--Optional:-->
    <ns:ClosedTerminal>?</ns:ClosedTerminal>
    <!--Optional:-->
    <ns:ClosedTimestamp>?</ns:ClosedTimestamp>
    </real:Diversion>
    </soapenv:Body>
    </soapenv:Envelope>
    Now the third party sends a HospitalDiversionMessage in this format_
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://amb.com/cad/RealTimeService" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <ns0:Diversion>
    <ns0:Action>?</ns0:Action>
    <ns0:Open>?</ns0:Open>
    <!--Optional:-->
    <ns0:Location>?</ns0:Location>
    <ns0:Type>?</ns0:Type>
    <ns0:SubType>?</ns0:SubType>
    <!--Optional:-->
    <ns0:ExpiryTimestamp>?</ns0:ExpiryTimestamp>
    <!--Optional:-->
    <ns0:Comment>?</ns0:Comment>
    <!--Optional:-->
    <ns0:ItemNumber>?</ns0:ItemNumber>
    <!--Optional:-->
    <ns0:Notifications>?</ns0:Notifications>
    <ns0:CreatedTerminal>?</ns0:CreatedTerminal>
    <ns0:CreatedTimestamp>?</ns0:CreatedTimestamp>
    <!--Optional:-->
    <ns0:ClosedBy>?</ns0:ClosedBy>
    <!--Optional:-->
    <ns0:ClosedComments>?</ns0:ClosedComments>
    <!--Optional:-->
    <ns0:ClosedTerminal>?</ns0:ClosedTerminal>
    <!--Optional:-->
    <ns0:ClosedTimestamp>?</ns0:ClosedTimestamp>
    </ns0:Diversion>
    </soapenv:Body>
    </soapenv:Envelope>
    Questions*
    1) I cannot figure out how the SOAPUI tool or SOA substitutes "real" as the namespace prefix for the WSDL based HospitalDiversionMessage and what I need to do at my end to match the message structure as per what the third party needs.
    2) I need ns0 namespace prefix to whole of Diversion xml element. Currently it is "real" at top Diversion element and "ns" for its children
    Please suggest, I can attach the other imported XSD if need be.
    Thanks
    Edited by: user5108636 on Jun 13, 2011 6:55 PM
    Edited by: user5108636 on Jun 13, 2011 6:57 PM
    Edited by: user5108636 on Jun 13, 2011 7:02 PM

    Questions
    1) I cannot figure out how the SOAPUI tool or SOA substitutes "real" as the namespace prefix for the WSDL based HospitalDiversionMessage and what I need to do at my end to match the message structure as per what the third party needs.The xml namespace suffixes like real and ns0 are just references used by the XML Parsers. For that matter the "real" can be xyz as well.
    You dont need to make any changes as long as the xml namespace suffixes refer to the same namespace.
    If you see the first soapUI xml and the third party xml have the same namespace references and hence it is not a problem:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:real="*http://amb.com/cad/RealTimeService*" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <*real*:Diversion>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="*http://amb.com/cad/RealTimeService*" xmlns:ns="http://schemas.com/cad/datamodel/divert/1.0.0">
    <soapenv:Header/>
    <soapenv:Body>
    <*ns0*:Diversion>
    2) I need ns0 namespace prefix to whole of Diversion xml element. Currently it is "real" at top Diversion element and "ns" for its childrenBased on this, logically both the xmls represent the same xml message. And hence you dont need to make any changes.
    Please refer to the basics of xml namespaces using the following links:
    http://en.wikipedia.org/wiki/XML_namespace
    http://zvon.org/comp/r/tut-Namespace.html#Pages~Introduction
    Let us know if you still need clarification.
    Hope this helps.
    Thanks,
    Patrick

  • Xml namespace and xslt

    Hi,
    This is a pure xml question. Let me know if there are good forums better suited for this kind of problem.
    I receive an xml message with the following format:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <staticMessage xmlns="Static/nme" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="Static/nme ./StaticMessage.xsd">
    </staticMessage>I fail to apply transformation when using a stylesheet like:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
         <xsl:value-of select="staticMessage/body/data"/>
    </xsl:template>
    </xsl:stylesheet>However if I remove the xmlns attribute in the incoming message (xmlns="Static/nme" ) the transformation works correctly.
    I do not have a great understanding of namespaces.
    Does anyone know if any special declaration needs to be made for the xsl file to work correctly?
    Tx,
    Mik.

    Noticed that declaring a prefix in xsl (xmlns:pre="Static/nme") allows to access nodes or values ( pre:staticData/pre:.../)
    But does a prefix need to reference the xml namespace or is it possible to define it as default?
    Tx,
    Mik.

  • CS4-JS : Read XML file and getting Attributes

    Dear All,
    How to get the Attributes based on the RootElements.
    For Example:
    //========================== XML File : Start ================================//
    <stag>
         <cust>
            <custname>120</custname>
             <atagst name="alpha" attributename="1" attributevalue="2" sty="First"/>
             <atagst name="beta" attributename="1" attributevalue="5" sty="Second"/>
             <atagst name="gama" attributename="1" attributevalue="2" sty="Third"/>
              <atagst name="theta" attributename="1" attributevalue="5" sty="Fourth"/>
          <cust>
         <cust>
             <custname>121</custname>
              <atagst name="A.alpha" attributename="1" attributevalue="2" sty="First"/>
              <atagst name="A.beta" attributename="1" attributevalue="5" sty="Second"/>
             <atagst name="A.gama" attributename="1" attributevalue="2" sty="Third"/>
              <atagst name="A.theta" attributename="1" attributevalue="5" sty="Fourth"/>
          <cust>
         <cust>
             <custname>122</custname>
              <atagst name="B.alpha" attributename="1" attributevalue="2" sty="First"/>
              <atagst name="Bbeta" attributename="1" attributevalue="5" sty="Second"/>
             <atagst name="B.gama" attributename="1" attributevalue="2" sty="Third"/>
              <atagst name="B.theta" attributename="1" attributevalue="5" sty="Fourth"/>
          <cust>
    </stag>
    //==========================  XML File : End ================================//
    Here I want to check through Java Script Code [InDesign]
    //======================== Script : Starts ====================================//
    var myEveryName = new Array();
    traverse(roots);
      for(var Element_name=0; Element_name<myEveryName.length; Element_name++)
                      if(myEveryName[Element_name] == "customername")
                                      custname.push(myEveryContent[Element_name]);
                    if(myEveryName[Element_name] == "applytagstyle")
                                Aname.push(myEveryAttributes[Element_name][0]);
                                 Aattributename.push(myEveryAttributes[Element_name][1]);
                                 Aattributevalue.push(myEveryAttributes[Element_name][2]);
                                 Asty.push(myEveryAttributes[Element_name][3]);
    function traverse(tree) {
        myEveryName.push(tree.name()); 
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //========================  XML File : End ====================================//
    Everything working fine, but I couldn't get attribute values. Please check the below example
    For Example:
    If you check first root element in above xml code
    i need the output like
    custname=120
    name=alpha,beta,gama,theta
    attributename=1,1,1,1
    attributevalue=2,5,2,5
    sty=first,second,third,fourth
    custname=121
    Please any one can help me and give me the solutions.
    Thanks & Regards
    T.R.Harihara SudhaN

    Few questions:
    1. Your XML is not well formed.
    2. Secondly, I do not see any relation of XML with script. For instance, I do see any elements "customername", "applytagstyle" in input.
    3. Either you have not provided the complete source or either your dummy XML is incorrect.
    Anyways, having a quick look, I guess you are trying to get specific attributes values from XML tree. I will try to give you a kick start though you will be required to customized the script as per requirement (for instance rearranging the attribute values in array and so forth). Otherwise please try to post complete inputs.
    #include "glue code.jsx"
    //Get the attribute values of all elements
    main();
    function main(){
    if (app.documents.length != 0){
    var myDoc = app.activeDocument;
    var myRuleSet = new Array (
    new findObjAttribute("//*")
    with(myDoc){
    var elements = xmlElements;
    __processRuleSet(elements.item(0), myRuleSet);
    else{
    alert("You have no document open!");
    exit();
    function findObjAttribute(XPATH){
    this.name = "findObjAttribute";
    this.xpath = XPATH;
    this.apply = function(myElement, myRuleProcessor)
    var elmName=myElement.markupTag.name;
    with(myElement){
    try {
    var Name=myElement.xmlAttributes.itemByName("name").value;
    var AttName=myElement.xmlAttributes.itemByName("attributename").value;
    var AttValue=myElement.xmlAttributes.itemByName("attributevalue").value;
    var AttSty=myElement.xmlAttributes.itemByName("sty").value;
    $.writeln("Name: "+Name);
    $.writeln("AttributeName: "+AttName);
    $.writeln("AttributeValue: "+AttValue);
    $.writeln("Sty: "+AttSty);
         } catch(e){};
    return true;
    This will just print the values JavaScript console.
    HTH,
    Pankaj Chaturvedi

  • XML Namespace and schemalocation property?

    In many xml examples i see many nameschemas which even dont use in xml like in below example we have defined nameschemas as xsi,aop and one default
    namespace. If we dont use them what the purpose of defining them.Did not attach the xml as its quite big.
    Second question is :- Assume that we using this nameschemas..We usually defined the values of namechemas and schemalocation with some web address
    like http://someAdddress//. What if we define them with some arbitrary value like ABC or something else. Will it make any differnce? Is there any
    processing we do from these web addresses?
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/
    schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema
    /aop/spring-aop-2.0.xsd">

    Take a look at these:
    http://www.w3.org/TR/REC-xml-names/
    http://www.w3.org/TR/xmlschema-1/
    http://www.w3.org/TR/xmlschema-2/
    Regards,
    AK~

  • XML reader and get the value from another class

    Hello to all, I have stupid question.
    I have main.java and ConfigXML.java(read my config xml file).
    Code from ConfigXML.java
    NodeList flnamelist = flcon.getElementsByTagName("filename");
    Element flnameEL= (Element)flnamelist.item(0);
    NodeList flnameTEXT = flnameEL.getChildNodes();
    String alsl = ((Node)flnameTEXT.item(0)).getNodeValue().trim();How I can get String alsl = ((Node)flnameTEXT.item(0)).getNodeValue().trim(); from my ConfigXML.java to main.java.
    Sorry for my bad english

    public class ConfigXML {
      private String alsl;
      // constructor goes here if necessary
      public void parse() {
        // something
        NodeList flnamelist = flcon.getElementsByTagName("filename");
        Element flnameEL= (Element)flnamelist.item(0);
        NodeList flnameTEXT = flnameEL.getChildNodes();
        alsl = ((Node)flnameTEXT.item(0)).getNodeValue().trim();
        // Notice that we assigned the data to an instance variable
      public String getAlsl() {
        return alsl;
    public class Main {
      // That's a really terrible name but at least let's capitalize it so it's standard
      public static void main(String[] args) {
        ConfigXML config = new ConfigXML();
        config.parse();
        String answer = config.getAlsl();
    }

  • A web service that returns a xml file and gets another xml file as input?

    Hi,
    I want to create a web service which gets an xml document as input then returns again an xml document.How can I create this kind of web service?
    Is this kind of implementation is possible?
    public Document mywebservice(Document input){
    Document d;
    return d;
    or do I have to use serialization processes which I don't know very much.
    I am waiting for your help.Thank you...

    If you want to deal directly with the Document and not want the SOAP engine to serialize/deserialize the XML into Java objects, then you can easliy implement this using Axis. Look at the Axis documentation (http://ws.apache.org/axis/java/user-guide.html#ServiceStylesRPCDocumentWrappedAndMessage) under the heading "Message Services". One of the provided API methods that Axis provides is in the form you want: public Document method(Document body). Hope that helps. As for how to implement the service using Axis, that is beyond the scope of this forum. Check the Axis docs for more help on that.

  • Receiving XML document and getting attachment via URL

    What is the best method to retrieve a file from a provided URL. Here is the scenario. A system will send us an XML document via an HTTP post but the source system is unable to send us the associated attachment as a MIME attachment instead in the XML they will include a extra node with the URL to a file we need to get. What is the ideal method of retrieving this file once we receive the XML message. If the provided link was an ftp site we would hold the message in BPM and use the file adapter but since this is a full url such as http://someserver.com/myfile/file.doc we are looking for the best approach. On thought was a Java Proxy.
    Regards

    Hi,
    there are just two approaches:
    easy one - java proxy
    more diffcult - creating sync adapter for http xmls
    I'd go for java proxy (if possible from secutiry point of view)
    as you will have the link (so no "adapter configuration" necessary in your case)
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • HTTPService XML contentType and Gets

    I have a flex front-end in which I'm trying to get data from
    a back-end using an HTTPService. I would like the service to use a
    GET, and make the request using the contenttype of application/xml.
    So for example here's an HTTPService that does this:
    <mx:HTTPService id="testService"
    url="/blah/list"
    contentType="application/xml"
    method="GET"/>
    When I go ahead and do the request (using testService.send())
    it always does the request as a POST. If I change the HTTPService's
    contentType to "application/x-www-form-urlencoded" it works
    correctly as a GET.
    Does anyone have any pointers on how I could get this to work
    the way I want it? Is this a flex bug or an undocumented feature
    somewhere? Any workarounds?
    Thanks.
    Here is the output I get when I put an <mx:TraceTarget>
    in the app with the contentType="application/xml":
    (mx.messaging.messages::HTTPRequestMessage)#0
    body = "<>"
    clientId = (null)
    contentType = "application/xml"
    destination = "DefaultHTTP"
    headers = (Object)#1
    httpHeaders = (Object)#2
    messageId = "3EB110BB-955A-9601-C595-C14D38E12C14"
    method = "POST"
    recordHeaders = false
    timestamp = 0
    timeToLive = 0
    url = "/pools/list"

    I think I may have been confused on the way flex goes about
    handling data requests. The final outcome I was looking for was
    that requests hitting the server from the flex app would have the
    accept type of 'application/xml' (so you'd do a .send() on the
    service and it would send out a request who's header would be ...
    Accept: application/xml).
    I was assuming that this parameter would change that, but I'm
    getting the feeling that that is more of an internal to the app
    setting than an outbound request parameter and that the browser
    will probably keep the same request header no matter what.
    So if you're running your flex app on Firefox your server is
    always going to see (for the time being)
    Accept:
    text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png ,*/*;q=0.5
    Hopefully that is clear.
    Anyone want to confirm/deny that?

  • I am trying to register the xml schema and getting error

    SQL> BEGIN
    2 DBMS_XMLSCHEMA.registerSchema(
    3 SCHEMAURL => 'http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd',
    4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-1998.dtd'),
    5 CSID => nls_charset_id('AL32UTF8'));
    6 END;
    7 /
    BEGIN
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00247: invalid Document Type Declaration (DTD)
    Error at line 45
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
    ORA-06512: at line 2
    the xml i am trying to register is
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE metadata SYSTEM "http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd">
    <metadata>
    <idinfo>
    <citation>
    <citeinfo>
    <origin>MRF</origin>
    <pubdate>20040512</pubdate>
    <pubtime>09000000</pubtime>
    <title>BAS_EASEMENT</title>
    etc.
    Pls help me in registering the xml schema.

    I am registering fgdc-std-001-1998-sect01.xsd, but it is
    giving error about citeinfo element.XSD is
    <?xml version="1.0" encoding="utf-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://www.ascc.net/xml/schematron" blockDefault="#all">
    <xsd:element name="idinfo" type="idinfoType"/>
    <xsd:complexType name="idinfoType">
         <xsd:sequence>
              <xsd:element ref="citation"/>
              <xsd:element ref="descript"/>
              <xsd:element ref="timeperd"/>
              <xsd:element ref="status"/>
              <xsd:element ref="spdom"/>
              <xsd:element ref="keywords"/>
              <xsd:element ref="accconst"/>
              <xsd:element ref="useconst"/>
              <xsd:element ref="ptcontac" minOccurs="0"/>
              <xsd:element ref="browse" minOccurs="0" maxOccurs="unbounded"/>
              <xsd:element ref="datacred" minOccurs="0"/>
              <xsd:element ref="secinfo" minOccurs="0"/>
              <xsd:element ref="native" minOccurs="0"/>
              <xsd:element ref="crossref" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="citation" type="citationType"/>
    <xsd:complexType name="citationType">
         <xsd:sequence>
              <xsd:element ref="citeinfo"/>
         </xsd:sequence>
    </xsd:complexType>
    SQL> BEGIN
    2 DBMS_XMLSCHEMA.registerSchema(
    3 SCHEMAURL => 'fgdc-std-001-1998-sect01.xsd',
    4 SCHEMADOC => bfilename('XMLDIR','fgdc-std-001-1998-sect01.xsd'),
    5 LOCAL => TRUE,
    6 GENTYPES => TRUE,
    7 genbean => FALSE,
    8 GENTABLES => FALSE,
    9 force => False,
    10 CSID => nls_charset_id('UTF8'));
    11 END;
    12 /
    BEGIN
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00021: undefined element "citeinfo"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
    ORA-06512: at line 2
    I am unable to understand xsd, is there any manual to understand
    xsd or some literature.I need to create new xsd as per requirements
    also.But Pl could you help me right now with registering current xsd.

  • Draft proposal: Namespaces and CSS

    Hey all,
    This is a draft proposal for how we'll update CSS support to handle
    disambiguating classes via namespace. Feedback appreciated here for now so
    when we get to the formal mini-spec we can rush it through.
    Keeping in mind that most folks have indicated they don't use Type selectors
    much in CSS...
    - Namespace qualification is now required for type selectors in CSS style
    declarations.
    - Gumbo will use the CSS3 suggested syntax for declaring namespaces and
    prefixing type selectors. For the most common component namespace the
    default namespace can be used (ignore the actual namespace url value):
    @namespace "http://ns.adobe.com/flex/spark";
    Button { color: #990000; }
    Otherwise, prefixes can be specified for each namespace:
    @namespace "http://ns.adobe.com/flex/spark";
    @namespace cx "com.mycompany.*";
    Button { color: #990000; }
    cx|MyFancyButton { color: #000099; }
    - The namespace mappings that are currently used to map MXML tags to
    ActionScript class names will also apply to CSS3 type selectors. These
    mappings draw information from configured manifests in flex-config.xml,
    swcs' catalog.xml files, and local package namespaces (e.g. how in MXML you
    use xmlns:c="com.mycompany.*" to scope the package name for your custom
    component). Note that namespace/prefix mappings defined in MXML do not
    apply to the enclosing CSS.
    - Type selectors that are either not qualified by a namespace or do not
    resolve to an ActionScript class linked into the Application cause a warning
    at compile time.
    - The version compatibility flag forces the compiler to ignore type selector
    prefixes. This allows Flex 3 applications to continue to use type selectors
    without namespaces.
    - The runtime will only match against fully qualified class names going
    forward. When the compatibility version flag is set for Flex 3 or earlier,
    it only matches against local names.
    - When updating from Flex3, applications will either have to run in
    compatibility mode, or qualify their CSS type selectors using namespaces. We
    continue to discourage type selectors anywhere but the root application
    file, and a warning will be given if type selectors are used outside of the
    root application.

    Is modifying the default namespace per file allowed or will it always be
    the spark namespace?
    Scenario 1.
    Styles1.css
    @namespace "http://ns.adobe.com/flex/spark";
    Button { color: #990000; }
    Styles2.css
    @namespace "com.effectiveui.controls.*";
    SearchButton { color: #990000; }
    Scenario 2.
    File com/effectiveui/controls/SearchButton.mxml
      @namespace "com.effectiveui.controls.*";
    SearchButton { color: #990000; }
    Are these valid?
    Are class selectors scoped to the default/custom namespace and then just
    ignored by the style manager implementation, or are they always compiled
    into the global space?
    Do you expect Flex Builder 4 will provide autocompletion and namespace
    insertion when defining type selectors in css files?
    Sean Christmann
    Matt Chotin wrote:
    > A new discussion was started by Matt Chotin in
    >
    > Developers --
    > Draft proposal: Namespaces and CSS
    >
    > Hey all,
    >
    > This is a draft proposal for how we'll update CSS support to handle
    > disambiguating classes via namespace. Feedback appreciated here for now so
    > when we get to the formal mini-spec we can rush it through.
    >
    > ---------
    >
    > Keeping in mind that most folks have indicated they don't use Type selectors
    > much in CSS...
    >
    > - Namespace qualification is now required for type selectors in CSS style
    > declarations.
    > - Gumbo will use the CSS3 suggested syntax for declaring namespaces and
    > prefixing type selectors. For the most common component namespace the
    > default namespace can be used (ignore the actual namespace url value):
    >
    > > @namespace "http://ns.adobe.com/flex/spark";
    > Button { color: #990000; }
    >
    >
    > Otherwise, prefixes can be specified for each namespace:
    >
    > > @namespace "http://ns.adobe.com/flex/spark";
    > @namespace cx "com.mycompany.*";
    >
    > Button { color: #990000; }
    > cx|MyFancyButton { color: #000099; }
    >
    >
    > - The namespace mappings that are currently used to map MXML tags to
    > ActionScript class names will also apply to CSS3 type selectors. These
    > mappings draw information from configured manifests in flex-config.xml,
    > swcs' catalog.xml files, and local package namespaces (e.g. how in MXML you
    > use xmlns:c="com.mycompany.*" to scope the package name for your custom
    > component). Note that namespace/prefix mappings defined in MXML do not
    > apply to the enclosing CSS.
    >
    > - Type selectors that are either not qualified by a namespace or do not
    > resolve to an ActionScript class linked into the Application cause a warning
    > at compile time.
    >
    > - The version compatibility flag forces the compiler to ignore type selector
    > prefixes. This allows Flex 3 applications to continue to use type selectors
    > without namespaces.
    >
    > - The runtime will only match against fully qualified class names going
    > forward. When the compatibility version flag is set for Flex 3 or earlier,
    > it only matches against local names.
    >
    > - When updating from Flex3, applications will either have to run in
    > compatibility mode, or qualify their CSS type selectors using namespaces. We
    > continue to discourage type selectors anywhere but the root application
    > file, and a warning will be given if type selectors are used outside of the
    > root application.
    >
    >
    >
    > ------------------------------------------------------
    > View/reply at
    > Replies by email are OK.
    > Use the unsubscribe form at
    to cancel your email subscription.
    > .
    >
    >

  • Default Interface Namespace

    Sender SOAP Adapter there is a mandatory field asking for "Default Interface Namespace " and " Default Interface Name ". What should we enter there ?
    Does webservices always use Application xml ? How would we find out they are expecting " Application xml " or "content XML" ?
    Ajith

    Hi Chandran,
       This is to reuse the channel for more number of scenarios. If you this default namespace and default interface name in sender channel, then all other scenarios which satisfy this rule(namespace and interface name) can use this channel with out creating new channel.
    note:-For SAP PI 7.1, you can have single service interface having multiple operations for each of the message types.
    thanks,
    madhu

  • Parse XML file and extract data

    I'd like to parse an XML file and get some data extracted as columns.
    Input file country.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <MAS Action="Insert">
    <Country ObjectId="100000000000000009" VersionId="8"><Id>1</Id><NlTexts><Name Language="de">Land1</Name><Name Language="en">Country1</Name></NlTexts></Country>
    <Country ObjectId="100000000000000033" VersionId="2"><Id>2</Id><NlTexts><Name Language="de">Land2</Name><Name Language="en">Country1</Name></NlTexts></Country>
    </MAS>
    I'd like to parse the xmlfile in order to get the following output
    Required result:
    col1        col2           col3
    1            Land1        Country1
    2            Land2        Country2
    or alternatively
    col1  col2      
    1            Land1      
    1            Country1
    2            Land2      
    2            Country2
    I tried extract-function
    select extract((XMLTYPE(BFILENAME('XML_DAT_DIR', 'country.xml'),
               NLS_CHARSET_ID('AL32UTF8'))) , '/*/*/Id') as "xdata"
    from dual;
    xdata
    <Id>1</Id><Id>2</Id>
    and XMLTABLE (but how can I add the countries now)
    SELECT *
        FROM XMLTABLE('/*/*/Id'
               PASSING XMLTYPE(BFILENAME('XML_DAT_DIR', 'country.xml'),
               NLS_CHARSET_ID('AL32UTF8'))
    COLUMN_VALUE
    <Id>1</Id>
    <Id>2</Id>
    DB version 11.2.0.3 on Windows 64bit
    Thanks,
    Tim

    Here are a few examples.
    For your required output :
    SELECT *
    FROM XMLTable(
           '/MAS/Country'
           passing XMLType(bfilename('TEST_DIR', 'country.xml'), nls_charset_id('AL32UTF8'))
           columns col1 number       path 'Id'
                 , col2 varchar2(30) path 'NlTexts/Name[1]'
                 , col3 varchar2(30) path 'NlTexts/Name[2]'
    or, if the Language attribute is significant :
    SELECT *
    FROM XMLTable(
           '/MAS/Country'
           passing XMLType(bfilename('TEST_DIR', 'country.xml'), nls_charset_id('AL32UTF8'))
           columns col1 number       path 'Id'
                 , col2 varchar2(30) path 'NlTexts/Name[@Language="de"]'
                 , col3 varchar2(30) path 'NlTexts/Name[@Language="en"]'
    For your alternate output :
    SELECT x1.col1
         , x2.col2
         --, x2.col3
    FROM XMLTable(
           '/MAS/Country'
           passing XMLType(bfilename('TEST_DIR', 'country.xml'), nls_charset_id('AL32UTF8'))
           columns col1  number  path 'Id'
                 , names xmltype path 'NlTexts/Name'
         ) x1
       , XMLTable(
           '/Name'
           passing x1.names
           columns col2 varchar2(30) path '.'
                 --, col3 for ordinality
         ) x2
    (uncomment col3 to see what it does)
    or, in a shorter way :
    SELECT *
    FROM XMLTable(
           'for $i in /MAS/Country
              , $j in $i/NlTexts/Name
            return element r { $i/Id, $j }'
           passing XMLType(bfilename('TEST_DIR', 'country.xml'), nls_charset_id('AL32UTF8'))
           columns col1 number       path 'Id'
                 , col2 varchar2(30) path 'Name'

Maybe you are looking for

  • After Effects CC (2014) MacPro Performance??

    I just installed the new After Effects CC (2014) on my 2013 MP with 2 D700s.  I am not noticing any significant difference from the previous version of AE.  GPUs are still showing as 2GB of VRAM (see below).  I dropped in a 5K (5120x2700) R3D clip in

  • Custom Renderer / Embedded Objects

    In looking over the developer's guide, it suggests that one would have to create a custom XML renderer to handle deep structured documents (i.e., embedded objects). Is my reading of the renderer chapter correct? Thanks in advance.

  • Change web service refresh rate

    I'm running LabVIEW Web Service with an application which follow the method shown in the weather monitor example. But my problem facing here is I need to keep click the refresh button then the Web Service only can update the latest data for me. So ca

  • TS1368 "The item you've requested is not currently available in the U.S. Store"

    is the message I get when trying to connect to the itunes store today. anyone else having this issue? and what's up?

  • Does Dreamweaver CS3 work with 64 bit version of Windows 7?

    Windows 7, 64 bit, Home Premium was clean installed.  I had no difficulty reinstalling Dreamweaver CS3, but when I try to open a file I get a message that  says." A problem has caused the program to stop working correctly.  Windows will close the pro