Two apparently identical xml files. A fine exception analysis expects a name

Hey. For a beginner to xml, these look similar v:

Analysis:


    
    
    
    

Will not scan:


  
  
  
  
  
  
  
  
  

Code is below. Thoughts why?

    private static NodeList GetNodeListFromInputStream(InputStream is) {

        NodeList list = null;

        try {

            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory. newInstance();
            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); 

            docBuilder.isValidating();
            Document doc = docBuilder.parse(is);  // FAILS HERE- why         // Get stream from xml file

            // 2 ways to do it- heirarchically from root node or getElByTag* as a list. We do list
            list = doc.getElementsByTagName("*"); 

        }
        catch ( Exception e )
        {
                System.out.println( "\n\n*****************\n" + e.toString() );
        }

        return list;

    }

If you don't find anything, why not try and write it yourself? You can easily write a parser of the state machine-based in order to transform the entrance in a simple way.

Tags: BlackBerry Developers

Similar Questions

  • Problem with large XML files over HTTP segmented analysis

    I am trying to isolate a bug introduced when the JRE in Java 7u51 use 7u71 without changing the codes. The problem seems to be very similar to: Bug ID: JDK-8027359 XML parser returns incorrect results of analysis.

    Further investigation showed that it was also introduced in the same versions (7u71) where this patch has been applied. Unlike this bug, my XML is marked as version 1.0. He also seems to be with only large XML, the order of 10 MB files or more.

    Is the closest I've been able to reduce it down to the code uses JAXB to disrupt a flow which tells me that the debugger is an org.apache.http.com.EofSensorInputStream / org.apache.http.impl.io.ChunkedInputStream. The exception I get is not consistent, but usually appears from pieces are replaced or mixed, with result the letters appearing in the attributes that are actually numbers, or like the following, where an attribute "testAttribute" gets partially crushed by the end of a timestamp that was in another section of the XML file.

    javax.xml.bind.UnmarshalException
    - with linked exception:
    [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,98748]
    Message: Attribute name "testAttribu00Z" associated with an element type "testElement" must be followed by the ' = ' character.]
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:421)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:357)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:334)
    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,98748]
    Message: Attribute name "testAttribu00Z" associated with an element type "testElement" must be followed by the ' = ' character.
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:598)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355)
      ... 6 more
    
    
    

    A code here which seems to reproduce if you can connect to an XML server that returns a large segmented XML file:

      SchemeRegistry registry = new SchemeRegistry();
      registry.register(
                    new Scheme("http", 80, PlainSocketFactory.getSocketFactory()));
      HttpClient client = new DefaultHttpClient(new BasicClientConnectionManager(registry));
      String url = "http://someUrlReturningAlargeChunkedXML";
      HttpGet method = new HttpGet(url);
      HttpResponse response = client.execute(method);
    
      InputStream inputStream = response.getEntity().getContent();
    
      XMLStreamReader responseReader = factory.createXMLStreamReader(inputStream);
      JAXBElement<JaxBObjectOfResponse> wot = unmarshaller.unmarshal(responseReader, JaxBObjectOfResponse.class);
    
    
    

    There is no error if you connect using URL.openStream () to the same service. If I read bytes directly and write to a file, there is no error. The error occurs only when I try to disrupt it is great and I use Java 7u71 (or later). It can be constantly repeated with the jsp webapp I use, but did not show the error when I used the same code with a Wikipedia dump XML file.

    How can I unmarshal differently to avoid this problem? Or, how can I best isolate the bug so it can be sent to the appropriate bugs system?

    Seems to be related to this bug, which will be fixed in 7u80 and others (in April?).

    http://bugs.Java.com/bugdatabase/view_bug.do?bug_id=8059327

    Tests with the final version in early 7u80 showed it fixed my related question.

  • Get the table to an XML file with several bays

    Hello

    So I was faced with this program I have for the past few months but I'm almost there. I have a program that creates several berries and place one after the other in an xml file, and each table has its unique name. Now, I would create a VI that takes this XML file and when the user enters the name of the table specific they are seeking it goes into the xml file concludes the table in its entirety under this name and displays in an indicator of output to be read on the VI. A sample of my xml file and the VI that creates this xml file is attached.

    Thank you

    dlovell

    Something like this should work for you.

  • How can I set the xml file data button colors?

    I read an xml file to create a group of buttons. I also use a Repeater to create the Group of buttons.

    I am the created buttons, but am unable to correctly set the fill color. I get the error 'Implicit coercion of a value of type String to a type unrelated to Array' if I try to plug r.currentItem.value, even when I used an Actionscript function to convert a string to an array of 2 uints. Is there a solution of casting of simple type that I'm simply not?

    Any help would be greatly appreciated!

    The xml file has the following format:

    < color >
    < color >
    < name > cantaloupes < / name >
    < value > 0xFFCC66 < / value >
    < / color >
    < color >
    < name > banana < / name >
    < value > 0xFFFF66 < / value >
    < / color >
    < color >
    < name > lemon < / name >
    < value > 0xFFFF00 < / value >
    < / color >
    < color >
    < name > honeydew < / name >
    < value > 0xCCFF66 < / value >
    < / color >
    < / color >

    The code I have so far is:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' initialize = "colors.send ()" layout = "absolute" > "
    < mx:HTTPService id = "color" url = "assets/colors_standard.xml" resultFormat = "e4x" / > "
    < mx:XMLListCollection id = source="{colors.lastResult.color}"/ "xlc_colors" >
    < mx:TabNavigator left = "0" top = "0" right = low "0" = "0" >
    < mx:Canvas label = "Tab 1" width = "100%" height = "100%" >
    < mx:Accordion width = "200" left = "0" top = "0" low = '0' >
    < mx:Canvas label = "Colors" width = "100%" height = "100%" >
    < mx:Label text = "Current color Selection" left = "10" right = "10" top = "10" height = "20" fontWeight = "bold" / >
    < mx:Button label = "Update of colors" left = "10" right = "10" top = "227" height = "22" id = "button_colors_update" / >
    < mx:Canvas height = "189" left is '10' right is "10" top = "30" borderStyle = "outset" backgroundColor = "#e9e9e9" >
    < mx:Tile id = "tile_standard" direction = "horizontal" tileWidth = "25" tileWidth = "25" horizontalAlign = "center" verticalAlign = "middle" borderStyle = "outset" left = "10" right = "10" top = "10" height = "134" backgroundColor = "#ffffff" >
    < mx:Repeater id = "r" dataProvider = "{xlc_colors}" >
    < mx:Button toolTip = "{r.currentItem.name}" height = "15" width = "15" x = "10" y = "10" / > "
    < / mx:Repeater >
    < / mx:Tile >
    < mx:Button label = "Other colors" id = "button_colors_online" height = "22" left = "10" right = "10" low = "10" / >
    < / mx:Canvas >
    < / mx:Canvas >
    < / mx:Accordion >
    < / mx:Canvas >
    < / mx:TabNavigator >
    < / mx:Application >

    Here you go:


    http://www.Adobe.com/2006/mxml '.
    verticalAlign = "middle" horizontalAlign = "center".
    layout = "horizontal" >


    [Bindable]
    private var array: Array = ['blue', 'red'];
    private var _color:String = "red";

    private void fillColors(c:String): Array {}
    StyleManager.getColorName ('red'), StyleManager.getColorName ('blue')
    return [c, c];
    }
    ]]>




  • Comparing nodes in two xml files

    I need help with a flex application, I do. My level of skill in flex is a bit basic, so some of the questions may seem easy, but they are not for me

    I need an application that will allow to load two external xml files and to compare nodes. Xml files are almost identical except for the values ofcourse. After that, I need to write the data to a new xml file that generates my flex application. Can someone give me please an example code which I can edit later for my own application. Can you give me any example with simpler xml files.

    Thanks in advance

    "for in" and "foreach in ' statements can be used to iterate over the nodes. If two xml files are of the same structure, you can easily compare the attributes of the node. Here is the link to the livedocs page for loop through the xml nodes

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=13_Working_with_XML_08.html

    Create string xml

    http://www.CFLEX.NET/showFileDetails.cfm?channelId=1&ObjectID=784

    Post edited by: Subeesh Arakkan

  • I have version 9 (I think) running on windows 10. Works fine EXCEPT when I try to apply automatic updates. It checks, downloads, copies the files and when it is almost by it says it has encountered an error and cancels everything. Frustrat

    I have version 9 (I think) running on windows 10. Works fine EXCEPT when I try to apply automatic updates. It checks, downloads, copies the files and when it is almost by it says it has encountered an error and cancels everything. Frustrating!

    Hi rct_nv ,

    Please provide the exact version of the acrobat application (given that no update available for acrobat 9 as its an older version)

    In addition, I wish to inform that Acrobat 9 is not compatible with Win 10 OS. Refer to this article:- Adobe Acrobat required configuration

    Kind regards

    Christian

  • Choose between two xml file date ranges

    Hello

    I have a date_ of column with the VARCHAR2 data type (150) it stores

    data in the form of
    19/05/2010 11:23
    20/05/2010 12:23
    22/05/2010 11:23
    25/05/2010 11:23


    I have to select all the lines between the 19/05/2010 and 22/05/2010 how do that this column found in the xml file

    Manaat wrote:
    2010-05-22 11:23 data is stored like this now, and the previous thing does not work on this format.

    So I guess you need to adjust the format.

    Something like:

    AND trunc( to_date( date_ , 'MM/DD/YYYY HH:MI AM' ) ) BETWEEN to_date('05192010','MMDDYYYY') AND to_date('05212010','MMDDYYYY')
    
  • Problem with Framemaker 9 Dita XML Files in Framemaker 10

    I just upgraded to Framemaker 10. I meet a number of problems when trying to work with my help of Dita XML topics, that were last saved in Framemaker 9.

    1. using the default Dita model

    When I open one of my documents in Framemaker 10, the Dita 1.2 model ditabase.fm is automatically applied. Everything seems fine. But then when I convert the XML using Eclipse (which is essentially the html, so we go from XML to HTML format) using Dita Open Toolkit ant scripts, I see this message:

    [pipeline] [DOTJ013E] [ERROR] failed to parse the referenced file 'html\c_licensing.xml' cause from under exception. Please correct the base on the exception message reference.
    [pipeline] c_licensing.xml 25:Attribute 'xmlns:ditaarch' of the line must be declared for the element type "dita".

    Then, I opened the xml file in a text editor, and I saw this on line 25:

    < dita xmlns:ditaarch = "http://dita.oasis-open.org/architecture/2005/" > ""

    25 line seems to me. Am I missing something?

    2 go to a model of Dita 1.1

    I tried to get around the above problem. In Framemaker, I tried to put another structured as the default application. I closed all files and choose the structured Dita 1.1 application default (it defaults to the Dita 1.1. Composite app.)

    Then I tried to open my file: I got this message inside Framemaker:

    'Failed XML validation. Continue?
    Error to the [path of ACCESS], line 25, tank 72, Message: attribute ' {http://www.w3.org/2000/xmlns/} ditaarch' is not declared for the element "dita"

    Sounds familiar, isn't?

    I went from Dita 1.1 by default. Composite application structured with the Dita 1.1. Application of structured theme. Then I messed the source file and saved. The messages that I got in the FrameMaker log window included one above, plus I had a variety of messages to unknown element, things like:

    Element unknown dita.

    notion of unknown element,

    various attributes are not reported for concept,

    element unknown conbody.

    If I go to the Dita 1.1 mash all these messages diappear except this one:

    Attribute ' {http://www.w3.org/2000/xmlns/} ditaarch' is not declared for the element "dita"


    My conversion scripts of Ant in the Dita Open Toolkit are still unable to process this file. They give the same message as above in (1) and the file is not converted to HTML.


    Can someone help me with this problem? I also posted this question in the Group of users of Dita on Yahoo Groups. If I get an answer in one place, I'll post it in the other.

    Thank you

    Nina P.

    [transferred to dita-users]

    Hi Nina...

    The xmlns:ditaarch attribute must be the "topic" not dita root element. If demand for FM10 structure is the award that it is wrong. You create composite themes (multiple topics in a single file under the root of dita)? If this isn't the case, you can get rid of the total dita element and who can "solve" the problem.

    The first mistake you get (#1) says that the xmlns:ditaarch attribute must be declared (that is, defined in the DTD)... It's not (because it is not supposed to be there (as I know). This is not to say that it must be declared in the DITA file.

    Even for the #2 error... the composite 1.1 app is apparently set up correctly, so it's saying the same thing that the Old Testament said... "you have this attribute in the XML file, but it is not declared in the DTD.

    Your subsequent error on the missing items is because you spent in the "topic" DTD, who does not know the dita element or elements based on concepts.

    If you can unpack your files dita element (because you are just using a topic in each file), which can solve the problem. But you probably need to do is open these files in a text editor and remove the attribute of xmlns:ditaarch of them (he not really needs on the elements of the topic either since it is the default value). Then, I turn to the composite 1.1 as a default app. I'll take a look at the FM10 1.2 default app and see what happens. (I have not seen this problem since I was on DITA-FMx, which has its own structure of apps).

    See you soon,.

    .. .Scott

    Scott Prentice

    Leximation, Inc..

    www.leximation.com

  • Noob XML - XML files validation attempt

    Versions of the databases: 10.2.0.4 on 11.2.0.3.

    I am currently on a site that has very little experience with XMLDB (0%). I myself have about 0.1% experience

    This would save a lot (!) time if XML files could be validated in the database, so I'll try from there to achieve, however, so far I can't work.

    I keep on running in:

    ORA-19007: pattern string does not match expected string.

    Question: The given XML document was consistent with a different schema than expected.

    Action: Insert/update only this particular scheme-compliant XML documents.

    I followed the steps in this article: www.xmldb.nl & amp; raquo; HOWTO: Validate the XML data

    (the examples in the article using ROOT_TABLE worked fine, by the way and have been my POC)

    and read the Oracle documentation on this topic.

    Currently, after several adjustments, XMLSpy said that the xsd and xml are valid.

    But Oracle is apparently still not convinced.

    Maybe it's something obvious, but I don't know where to look now, so any pointer is more than welcome.

    My next testcase (after the CPO ROOT_TABLE) was:

    Save a schema (using dbms_xmlschema.registerschema) in the following form:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <!--

    XSD schema

    ->

    " < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema "         

    elementFormDefault = "qualified" >

    < xs: element name = "Kwijtscheldingen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: ELEMENT ref = "Header" / >

    < xs: ELEMENT ref = "Kwijtschelding" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Header" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Assuré" type = "xs: String" / >

    < xs: element name = "Aanleverdatum" type = "Référence" / >

    < xs: element name = "Rapportagedatum" type = "Référence" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Kwijtschelding" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: ELEMENT ref = 'Algemeen' / >

    < xs: ELEMENT ref = "Inkomen" / >

    < xs: ELEMENT ref = "VermogenBD" / >

    < xs: ELEMENT ref = "Voertuigbezit" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = 'Algemeen' >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "BelemmeringEindoordeel" type = "Jore" / >

    < xs: element name = "Geslachtsnaam" type = "xs: String" / >

    < xs: element name = "Geboortedatum" type = "Référence" / >

    < xs: element name = "Student" type = "Jore" / >

    < xs: element name = "BSNPartner" type = "BSN" minOccurs = "0" / >

    < xs: element name = "GeslachtsnaamPartner" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "GeboortedatumPartner" type = "Reference" minOccurs = "0" / >

    < xs: element name = "StudentPartner" type = "Jore" minOccurs = "0" / >

    < xs: ELEMENT ref = "Leefvorm" / >

    < xs: ELEMENT ref = "BetrouwbaarheidLeefvorm" minOccurs = "0" / >

    < xs: element name = "AantalMeerderjarigeBewoners" type = "xs: unsignedByte" minOccurs = "0" / >

    < xs: element name = "AantalMinderjarigeBewoners" type = "xs: unsignedByte" minOccurs = "0" / >

    < xs: element name = "BSNTevensAangeleverdGemeente" type = "xs: String" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Inkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: element name = "TotaalNettoInkomen" type = "History" / >

    < xs: ELEMENT ref = "Inkomstenverhouding" minOccurs = "0" maxOccurs = "unbounded" / >

    < xs: element name = "BedragHuurtoeslag" type = "History" minOccurs = "0" / >

    < xs: element name = "BedragZorgtoeslag" type = "History" minOccurs = "0" / >

    < xs: ELEMENT ref = "Heffingskorting" minOccurs = "0" maxOccurs = "unbounded" / >

    < xs: ELEMENT ref = "StudentInkomen" minOccurs = "0" / >

    < xs: ELEMENT ref = "StudentPartnerInkomen" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "VermogenBD" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: element name = "SaldoTotaal" type = "History" / >

    < xs: element name = "RenteTotaal" type = "History" / >

    < xs: ELEMENT ref = "Free" maxOccurs = "unbounded" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Voertuigbezit" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: ELEMENT ref = "Con" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Algemeen Ref Prioritaten - >

    < xs: element name = "Leefvorm" >

    < xs:simpleType >

    < xs:restriction base = "XS: String" >

    < xs:enumeration value = "1" >

    < xs: annotation >

    < intention > Gehuwd/Samenwonend < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < xs:enumeration value = "2" >

    < xs: annotation >

    < intention > Alleenstaand < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < xs:enumeration value = "3" >

    < xs: annotation >

    older < intention > Alleenstaande < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: element >

    < xs: element name = "BetrouwbaarheidLeefvorm" >

    < xs:simpleType >

    < xs:restriction base = "XS: String" >

    < value pattern = "Laag |" Midden | Hoog "/ >"

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: element >

    <! - Inkomen - Ref Prioritaten->

    < xs: element name = "Inkomstenverhouding" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "werkgeverUitkeringsinstantie" type = "xs: String" / >

    < xs: element name = "BedragInkomsten" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Heffingskorting" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "description" type = "xs: String" / >

    < xs: element name = "Kortingsbedrag" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "StudentInkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BedragBasisbeurs" type = "History" / >

    < xs: element name = "BedragAanvullendeBeurs" type = "History" / >

    < xs: element name = "BedragLening" type = "History" / >

    < xs: element name = "BedragLeningCollegegeld" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "StudentPartnerInkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BedragBasisbeurs" type = "History" / >

    < xs: element name = "BedragAanvullendeBeurs" type = "History" / >

    < xs: element name = "BedragLening" type = "History" / >

    < xs: element name = "BedragLeningCollegegeld" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Fortune - elements->

    < xs: element name = "Free" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "NaamRekeninghouder" type = "xs: String" / >

    < xs: element name = "Rekeningnummer" type = "xs: String" / >

    < xs: element name = "Saldo" type = "History" / >

    < xs: element name = "Rent" type = "History" / >

    < xs: element name = "Banknaam" type = "xs: String" / >

    < xs: element name = "NaamBankproduct" type = "xs: String" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Con" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "Kenteken" type = "xs: String" / >

    < xs: element name = "Bouwjaar" type = "Jaar" minOccurs = "0" / >

    < xs: element name = "Soort" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Me" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Type" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Kokonaispainolla" type = "xs: int" minOccurs = "0" / >

    < xs: element name = "BrandstofSoort1" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "BrandstofSoort2" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Also" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "BijzondereCondities" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Status" type = "xs: String" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Generieke Typen - >

    < xs:simpleType name = "BSN" >

    < xs:restriction base = "XS: String" >

    < value pattern = "\d {9}" / > "

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Datum" >

    < xs: annotation >

    < intention > Datum als jjjjmmdd < / intention >

    < / xs: annotation >

    < xs:restriction base = "XS: String" >

    < xs:length value = "8" / >

    XS: pattern < value="[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]"/ >

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Bed" >

    < xs:restriction base = "XS: Decimal ' >

    < xs:fractionDigits value = "2" / >

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Crislover" >

    < xs:restriction base = "XS: String" >

    "< value pattern = ' J | N "/ >"

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Year" >

    < xs:restriction base = "XS: positiveInteger" >

    < xs:totalDigits value = "4" / >

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: Schema >

    I used when creating the table 'Kwijtscheldingen' element.

    The last test XML file, which has no problem with validation XMLSpy, is facing ORA-19007.

    Here is the content of the XML test file:

    <? XML version = "1.0" encoding = "utf-8"? >

    " < Kwijtscheldingen xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "xsi: noNamespaceSchemaLocation ="KWS2_Schema_Concept1.1.xsd"> ".

    < header >

    Organisatienaam < assuré > < / assuré >

    < Aanleverdatum > 20140701 < / Aanleverdatum >

    < Rapportagedatum > 20140715 < / Rapportagedatum >

    < / header >

    < Kwijtschelding >

    < Algemeen >

    < BSN > 111111111 < / BSN >

    < BelemmeringEindoordeel > J < / BelemmeringEindoordeel >

    < Geslachtsnaam > Geslachtsnaambsn111111111 < / Geslachtsnaam >

    < Geboortedatum > 19700707 < / Geboortedatum >

    < student > N < / student >

    < BSNPartner > 222222222 < / BSNPartner >

    < GeslachtsnaamPartner > GeslachtsnaamPartnerbsn222222222 < / GeslachtsnaamPartner >

    < GeboortedatumPartner > 19710709 < / GeboortedatumPartner >

    < StudentPartner > N < / StudentPartner >

    < Leefvorm > 1 < / Leefvorm >

    Hoog < BetrouwbaarheidLeefvorm > < / BetrouwbaarheidLeefvorm >

    < AantalMeerderjarigeBewoners > 2 < / AantalMeerderjarigeBewoners >

    < AantalMinderjarigeBewoners > 0 < / AantalMinderjarigeBewoners >

    < BSNTevensAangeleverdGemeente > AanleverGemeente1 < / BSNTevensAangeleverdGemeente >

    < BSNTevensAangeleverdGemeente > AanleverGemeente2 < / BSNTevensAangeleverdGemeente >

    < / Algemeen >

    < Inkomen >

    < Belemmering > J < / Belemmering >

    < TotaalNettoInkomen > 1000000 < / TotaalNettoInkomen >

    < Inkomstenverhouding >

    < BSN > 111111111 < / BSN >

    < werkgeverUitkeringsinstantie > werkgeverUitkeringsinstantie1 < / werkgeverUitkeringsinstantie >

    < BedragInkomsten > 800000 < / BedragInkomsten >

    < / Inkomstenverhouding >

    < Inkomstenverhouding >

    < BSN > 111111111 < / BSN >

    < werkgeverUitkeringsinstantie > werkgeverUitkeringsinstantie2 < / werkgeverUitkeringsinstantie >

    < BedragInkomsten > 200000 < / BedragInkomsten >

    < / Inkomstenverhouding >

    < BedragHuurtoeslag > 1100 < / BedragHuurtoeslag >

    < BedragZorgtoeslag > 2200 < / BedragZorgtoeslag >

    < Heffingskorting >

    < BSN > 111111111 < / BSN >

    < Description > Heffingskortingomschrijving1 < / Description >

    < Kortingsbedrag > 1000 < / Kortingsbedrag >

    < / Heffingskorting >

    < Heffingskorting >

    < BSN > 111111111 < / BSN >

    < Description > Heffingskortingomschrijving2 < / Description >

    < Kortingsbedrag > 7000 < / Kortingsbedrag >

    < / Heffingskorting >

    < StudentInkomen >

    < BedragBasisbeurs > 15000 < / BedragBasisbeurs >

    < BedragAanvullendeBeurs > 5000 < / BedragAanvullendeBeurs >

    < BedragLening > 4000000 < / BedragLening >

    < BedragLeningCollegegeld > 1000000 < / BedragLeningCollegegeld >

    < / StudentInkomen >

    < StudentPartnerInkomen >

    < BedragBasisbeurs > 80000 < / BedragBasisbeurs >

    < BedragAanvullendeBeurs > 20000 < / BedragAanvullendeBeurs >

    < BedragLening > 5000000 < / BedragLening >

    < BedragLeningCollegegeld > 1000000 < / BedragLeningCollegegeld >

    < / StudentPartnerInkomen >

    < / Inkomen >

    < VermogenBD >

    < Belemmering > J < / Belemmering >

    < SaldoTotaal > 3000000 < / SaldoTotaal >

    < RenteTotaal > 50000 < / RenteTotaal >

    < Location >

    < BSN > 111111111 < / BSN >

    < NaamRekeninghouder > Geslachtsnaambsn111111111 < / NaamRekeninghouder >

    < Rekeningnummer > 837476976 < / Rekeningnummer >

    < Saldo > 2000000 < / Saldo >

    < Pension > 30000 < / pension >

    < Banknaam > ABN AMRO < / Banknaam >

    < NaamBankproduct > Spaarrekening < / NaamBankproduct >

    < / Location >

    < Location >

    < BSN > 111111111 < / BSN >

    < NaamRekeninghouder > Geslachtsnaambsn111111111 < / NaamRekeninghouder >

    < Rekeningnummer > 845666037 < / Rekeningnummer >

    < Saldo > 1000000 < / Saldo >

    < Pension > 20000 < / pension >

    < Banknaam > ABN AMRO < / Banknaam >

    Deposito < NaamBankproduct > < / NaamBankproduct >

    < / Location >

    < / VermogenBD >

    < Voertuigbezit >

    < Belemmering > J < / Belemmering >

    < con >

    < BSN > 111111111 < / BSN >

    22GR 44 < Kenteken > < / Kenteken >

    < > 1988 Bouwjaar < / Bouwjaar >

    Personenauto < Soort > < / Soort >

    Renault < Merk > < / Merk >

    Clio < type > < / Type >

    < Weight > 1020 < / weight >

    Benzine < BrandstofSoort1 > < / BrandstofSoort1 >

    Inrichtingauto1 < also > < / also >

    < BijzondereCondities > Bijzonderhedenauto1 < / BijzondereCondities >

    < Status > Statusauto1 < / status >

    < / con >

    < con >

    < BSN > 111111111 < / BSN >

    33PL66 < Kenteken > < / Kenteken >

    < > 1991 Bouwjaar < / Bouwjaar >

    Personenauto < Soort > < / Soort >

    Opel < Merk > < / Merk >

    Omega < type > < / Type >

    < Weight > 1550 < / weight >

    Benzine < BrandstofSoort1 > < / BrandstofSoort1 >

    LPG < BrandstofSoort2 > < / BrandstofSoort2 >

    Inrichtingauto2 < also > < / also >

    < BijzondereCondities > Bijzonderhedenauto2 < / BijzondereCondities >

    < Status > Statusauto2 < / status >

    < / con >

    < / Voertuigbezit >

    < / Kwijtschelding >

    < / Kwijtscheldingen >

    If more input is needed, then I'll be happy to provide.

    Thanks in advance!

    Hello

    Maybe that is part of your condition, but you don't actually create a table to validate an XML document on a diagram.

    If this is the case, could you post the DBMS_XMLSCHEMA.registerSchema as well as the used CREATE TABLE and INSERT statements?

    For example, it works fine for me:

    Start

    () dbms_xmlschema.registerSchema

    schemaURL-online "KWS2_Schema_Concept1.1.xsd."

    schemaDoc-online xmltype (bfilename('TEST_DIR','KWS2_Schema_Concept1.1.xsd'), nls_charset_id ('AL32UTF8'))

    local-online true

    genTypes-online fake

    genTables-online fake

    enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE

    );

    end;

    /

    declare

    doc xmltype: = xmltype (bfilename('TEST_DIR','test.xml'), nls_charset_id ('AL32UTF8'));

    Start

    doc.schemaValidate ();

    end;

    /

  • How can I autorun script that will process an XML file at the opening?

    I use image 11. I have a saved script that looks for the event Constants.FA_Note_PostOpenXML notification. When this event is raised, the script is supposed to examine the root element (so I change only the appropriate XML files), then make some changes to the file. Specifically, I want to be able to delete empty pages, remove the room for the heads side and correct table formatting (for example the left indent, whereby I can not directly access, apparently, in the rules of the EDD or R/W). The code snippet that starts to do the following work:


    Notification (constants.FA_Note_PostOpenXML, true);

    function {Notify (note, object, sparam, etriqu)

    switch (note) {}

    case Constants.FA_Note_PostOpenXML:

    doTheWork();

    break;

    }

    }

    function doTheWork() {}

    var doc, flow, root, elemName, mPageAttrib, topicElem, topicElemName, allAttribs;

    doc = app. ActiveDoc;

    flow = doc. MainFlowInDoc;

    root = flow. HighestLevelElement; will always get something although unstructured document

    While (root. ObjectValid()) {//only do something for structured documents

    elemName = getElementName (root);

    .. more code to do things...

    }

    }

    I check then the element name root, and if it matches, I make a few changes. This code works fine when operating manually. But, when it is run as a recorded script, the app. ActiveDoc object is invalid, and there is no structure to edit. (I added the line if(!doc.) debug ObjectValid()) {alert ("invalid");} that is not included above.) It seems that the Constants.FA_Note_PostOpenXML event fires whenever the XML file opens, but BEFORE frame bed actually.

    Does anyone have recommendations on how to get around this? Is there something else I could use instead of Constants.FA_Note_PostOpenXML? Is there another way to manipulate an XML file automatically when loading?

    Thanks in advance

    The notification event receives four settings: note, object, sparam and etriqu. For the event that you are using, the object must be the subject of document of the FrameMaker document being opened. Then, you should be able to use this:

    doTheWork(object);
    

    Make sure that you update your doTheWork function to receive the Doc object:

    function doTheWork(doc) {
        var flow, root, elemName, mPageAttrib, topicElem, topicElemName, allAttribs;
        flow = doc.MainFlowInDoc;
        root = flow.HighestLevelElement; // will always get something even if unstructured document
        while(root.ObjectValid()) { //only do something for structured docs
            elemName = getElementName(root);
            ...more code to do stuff....
        }
    }
    

    -Rick

  • shipment value of the PHP variable to Flash to load an xml file

    I would like to load an XML file to the local location or on the server to ignore the name of the file. I use PHP to send the name of the Flash file.

    Here it is the PHP code:

    <? PHP

    filesInDir ('C:\Documents and Settings\457305\My Documents\shrikant\Flash Tutorials\webassist');

    function filesInDir ($tdir)

    {

    $dirs = rewinddir(3) ($tdir);

    foreach ($dirs as $file)

    {

    If (($file == '.') |) ($file == '..'))

    {

    }

    else if (is_dir ($tdir. » /'. $file))

    {

    filesInDir ($tdir. » /'. $file);

    }

    on the other

    {

    echo "fileName = $file";

    }

    }

    }

    ? >

    And here is the Actionscript code loading:

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.events.Event;

    to import flash.net.URLVariables;

    Stop();

    Set the PHP file to load

    var phpFile:String = " " http://localhost/WebAssist/test.php ";

    var cons_xml:XML;

    var xmlLoader:URLLoader = new URLLoader();

    Specify the property dataFormat of the URLLoader to be "VARIABLE".

    This ensures the variables loaded into Flash with the same variable names

    xmlLoader.dataFormat = pouvez;

    xmlLoader.load (new URLRequest (phpFile));

    xmlLoader.addEventListener (Event.COMPLETE, processXML);

    function processXML(evt:Event):void

    {

    trace (evt. Target.Data.FileName);

    cons_xml = new XML (evt.target.data.fileName);

    gotoAndPlay (2);

    }

    When I trace evt.target.data it displays "fileName = mainOpenEndedXML % 2Exml" and when I trace evt.target.data.fileName the file name is correctly displayed as 'mainOpenEndedXML.xml'.

    But in the two next lines where the loading is done that it does not load the file IE does not play the SWF to an xml file.

    I've searched the Internet to find answers, but not able to find solutions.

    Loading works fine if I insert the xml file directly in the code and the SWF in the XML file plays correctly. Here it is the code for the same thing:

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.events.Event;

    to import flash.net.URLVariables;

    Stop();

    var cons_xml:XML;

    var xmlLoader:URLLoader = new URLLoader();

    xmlLoader.load (new URLRequest ("mainOpenEndedXML.xml"));

    xmlLoader.addEventListener (Event.COMPLETE, processXML);

    function processXML(evt:Event):void

    {

    cons_xml = new XML (evt.target.data);

    gotoAndPlay (2);

    }

    Any help on this would be greatly appreciated


    You said you use PHP to send the name of the Flash file.  If the php file you provide only the name of the xml file that you need to load, then you will have to load the xml file in the same way that you show in your last set of code where you say that load you it directly.

  • load the XML file field Companion without cross-domain policy file

    Hello.

    Assuming that there are two areas companions on the same server: /public_html/domain1.com and /public_html/domain2.com

    I'm trying to load the XML from domain2.com in domain1.com without using a cross-domain policy file (since it does not work with xml files in my case).

    So the idea is to use a php file to load XML and read it back to Flash.

    I found an interesting scripts that seems to do the job, but unfortunately I can't make it work. In my opinion, there is somewhere with AS3 part problem. Please take a look.

    Here's the AS3/PHP scripts:

    AS3 (.swf in www.domain1.com):

    location of the xml file you want to load, full http address

    var xmlLoc:String = " " http://www.Domain2.com/MyFile.XML ";

    location of the php xml grabber, regarding the .swf

    var phpLoc:String = "loadXML.php";

    var xml;

    var loader: URLLoader = new URLLoader();

    var request: URLRequest = new URLRequest (phpLoc + "? location =" + escape (xmlLoc));

    loader.addEventListener (Event.COMPLETE, onXMLLoaded);

    loader.addEventListener (IOErrorEvent.IO_ERROR, onIOErrorHandler);

    Loader.Load (request);

    function onIOErrorHandler(e:IOErrorEvent):void {}

    trace ("there was an error with the xml file" + e);

    }

    function onXMLLoaded(e:Event):void {}

    trace ("RSS feed has been loaded");

    XML = new XML (loader.data);

    / / string value, because it is passed from php as object

    XML = XML (xml.toString ());

    xml_txt.text = xml;

    }

    PHP (loadXML.php to www.domain1.com):

    <? PHP

    Header ("Content-type: text/xml");

    $location = "";

    {if (isset($_GET["location"]))}

    $location = $_GET ['location'];

    $location = urldecode ($location);

    }

    $xml_string = getData ($location);

    return the url encoded Flash vars

    echo $xml_string;

    Loops of a URL and returns

    function getData ($query) {}

    / / create resource curl

    $ch = function curl_init();

    / / cURL url

    curl_setopt ($ch, CURLOPT_URL, $query);

    Set some required params for the use of CURL

    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);

    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

    Execute the loop works and decode the returned JSON data

    $result = curl_exec;

    return $result;

    / / Close the curl resource to free up system resources

    curl_close ($ch);

    }

    ? >

    I think you might be right about / permissions on the server for php settings. Unfortunately I'm not allowed to adjust.

    So I wrote my own script - this time I used the path instead of the http address of the XML file.  It works fine in my case.

    Here it is:

    XML file on domain2.com:

    SWF on domain1.com:

    var imagesXML:XML;

    var variables: URLVariables = new URLVariables();

    var varURL:URLRequest = new URLRequest ("MyPHPfile.php");

    varURL.method = URLRequestMethod.POST;

    variable = varURL.data;

    var MyLoader:URLLoader = new URLLoader;

    MyLoader.dataFormat = pouvez;

    MyLoader.addEventListener (Event.COMPLETE, XMLDone);

    MyLoader.load (varURL);

    function XMLDone(event:Event):void {}

    var imported_XML:Object = event.target.data.imported_XML;

    imagesXML = new XML (imported_XML);

    MyTextfield_1.text = imagesXML;

    MyTextfield_2.text = imagesXML.image [0] .attribute ("thumbPath");  reference sample to assign "thumbPath' of the first item

    }

    php on domain1.comfile:

    <>

    $xml_file = simplexml_load_file('.. /.. / /galleries/gallery_1/MyXMLfile.xmldomain2.com');  Directory of XML file on the same server

    $imported_XML = $xml_file-> asXML();

    Print "imported_XML =". $imported_XML;

    ?>

    Concerning

    PS: for those who have read the foregoing: the first and the second script works but you need to test which one is best for your situation. The first script will work also between two domains located on different servers. No. cross necessary domain policy file.

  • having a problem with parsing the XML file

    Hi all
    I am trying to get data from XML file
    I want to only 4-5 values in this XML file
    Here is an example of XML file
    -< transaction >
    -< TransCtx >
    > < pAMETranType > IRCVACAPPROVAL < / pAMETranType >
    > < / TransCtx >
    > < / transaction >

    I want to add value and to store this value in table
    I'm here, I want to "IRCVACAPPROVAL".
    the tag
    < pAMETranType >

    for this purpose


    I created a procedure

    CREATE OR REPLACE PROCEDURE insert_xml_emps (p_directory in varchar2,
    > p_filename in varchar2)
    (> vtableName in varchar2) as
    > v_filelocator BFILE.
    > v_cloblocator CLOB.
    > l_ctx DBMS_XMLSTORE. CTXTYPE;
    > l_rows NUMBER;
    > v_amount_to_load NUMBER;
    > dest_offset NUMBER: = 1;
    > offset NUMBER: = 1;
    > lang_context NUMBER: = DBMS_LOB. DEFAULT_LANG_CTX;
    > WARNING NUMBER;
    > START
    > dbms_lob.createtemporary (v_cloblocator, true);
    > v_filelocator: = bfilename (p_directory, p_filename);
    > dbms_lob.open (v_filelocator, dbms_lob.file_readonly);
    > v_amount_to_load: = DBMS_LOB.getlength (v_filelocator);
    >-* this line is changed * -.
    > DBMS_LOB. LOADCLOBFROMFILE (v_cloblocator,
    > v_filelocator.
    > v_amount_to_load.
    > dest_offset.
    > offset.
    > 0,
    > lang_context.
    (> warning);
    >
    > l_ctx: = DBMS_XMLSTORE.newContext (vTableName);
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSACTION');
    > DBMS_XMLSTORE.setRowTag (l_ctx, 'TRANSCTX');
    >-clear the update settings
    > DBMS_XMLStore.clearUpdateColumnList (l_ctx);
    >-set the columns to update a list of values
    > DBMS_XMLStore.setUpdateColumn (l_ctx, 'PAMETRANTYPE');
    >
    >-now insert the doc.
    > l_rows: = DBMS_XMLSTORE.insertxml (l_ctx, v_cloblocator);
    > DBMS_XMLSTORE.closeContext (l_ctx);
    > dbms_output.put_line(l_rows ||) "... inserted rows. ») ;
    > dbms_lob.close (v_filelocator);
    > DBMS_LOB. FREETEMPORARY (v_cloblocator);
    > END;

    I also have on the table who get this value

    whenever I call that created the procedure
    it sometime gives an error or sometime run correctly but store null in the table


    But when I change the XML file
    as
    When convert all lowercase letters in the capital then it works fine

    Is tehre to other ways to parse the XML file with no change in the XML file?

    Did you use the same test (with the exception of file name and directory) case?

    What I posted is a copy/paste direct SQL * Plus, and it works on version 11.2.0.1.

  • Problem loading an xml file if not placed locally.

    Hey!

    I started a discussion on my capture setting problem and I now reduced it now. It turns out it wasn't settings do not have caught. The swf file takes the fine settings, so this apparently isn't the issue. My problem is that it seems that the file won't loaded .xml. When I have my .xml and .swf file locally on my computer and it works, it works very well. When I place it on my web server the same way, it works fine. However, when someone puts my .swf in embedded on their Web site that the XML will not be loaded by the SWF for a reason any. Here's the AS3 code, load the xml file. He was works well all the way until I started playing with the call of the swf from different sources (web server of my friend in the integrating etc.).

    -loading of the external xml file.

    var urlRequest:URLRequest = new URLRequest ("http://www.website.com/folder/myfile.xml");

    var urlLoader:URLLoader = new URLLoader();

    var myXML:XML = new XML();

    var xmlList:XMLList;

    myXML.ignoreWhitespace = true;

    urlLoader.addEventListener (Event.COMPLETE, fileLoaded);

    urlLoader.load (urlRequest);

    function fileLoaded(event:Event):void {}

    the code to play with the xml file once loaded

    }

    It seems that fileLoaded() is never executed unless the swf runs locally or on my computer or my server or called directly in the browser (like by typing in the web address field). I really can't understand what is wrong. Any suggestion is appreciated!

    try to create a file crossdomain.xml with this information:

    http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">     
    
  • AS3.0 iteration in XML file

    I am new to AS3.0 and the new way of use of XML E4X. I'm trying to loop through a portion of a loaded external XML file and display the results. Here's some of my XML file:
    < approval id = "1" >
    < title > The Gate House < /title >
    < feature > majestic two levels Preserve Neighborhood Amenity Center < / fiction >
    < element > beautiful gardens and trails meandering < / fiction >
    < feature > activity room meeting, theater room, Gourmet kitchen, fireplace, large fireplace < / fiction >
    < element > terraces and Patios < / fiction >
    < feature > available to residents for parties, meetings, weddings and meetings < / fiction >
    < / certification >

    Are both of the other equipment. When a user clicks on a button, I would like to enumerate all the features of this particular equipment. Here is my code for this (the code associated with the listener for the button):

    function btnClick (eventObject) {}
    var mc:MovieClip = eventObject.target
    var num:String = mc.name.replace("btn","")
    var xmlAmenity:XMLList = myXML.amenity. (@id is num)
    for each {(var prop: XML dans xmlAmenity)}
    trace (prop.feature);
    }
    }
    Basically, the button that calls this is btn1, then the variable num ends up being 1. myXML is a global variable in which the external XML file has already been loaded. It then uses the variable num to award accreditation with an id if 1 to the variable xmlAmenity as an XMLList. Everything works just great except for the fact that the trace of the product the following:
    < feature > majestic two levels Preserve Neighborhood Amenity Center < / fiction >
    < element > beautiful gardens and trails meandering < / fiction >
    < feature > activity room meeting, theater room, Gourmet kitchen, fireplace, large fireplace < / fiction >
    < element > terraces and Patios < / fiction >
    < feature > available to residents for parties, meetings, weddings and meetings < / fiction >

    I don't want the tags, what is inside of them. Is there a property, that I need to use (something like prop.feature.contents) or I go about it the wrong way entirely? I guess I could restructure my XML file to the content of the tag feature in an attribute named description and then draw the attribute with prop.feature.@description, but, I would like to know how to access the text inside the opening and closing tag. If I have direct access (something like myXML.amenity. (@id () == num) .feature [0]) so it works very well, I can't seem to figure out in a loop. I guess I could increment a variable and do something like trace (myXML.amenity. (@id () == num) .feature [x]), but there must be a better way.

    Goodness sakes, it was a long post for a quick response, I got it:
    My loop should read as follows:
    for each {(var prop: String en xmlAmenity.feature)}
    trace (n.m);
    }

    The key was enumeration in each xmlAmenity.feature, not xmlAmenity. Of course, if there is a better way, I'd buy some...

Maybe you are looking for