Analysis of xml with parserv2 hard

Hello, since a servlet on OAS 10.1.2.0.2, I'm trying to parse some xml but I get only a partial success. First problem I see is that it has 7 children of my node selected (LoanType) - there are two. Seven children are reported. But there are 7 LoanType nodes (brothers and sisters). The second problem is that I can not get the value of a node; just the name. getNodeValue() always returns null. But getNodeName() works very well. Anyone know why?

PS, there is no DTD or schema. It was supposed to be a simple proof of concept. 8 -)

my xml file:
------------
< LoanDecision >
< LoanType >
Costs of < ShortName > < / ShortName >
Costs of < LongName > < / LongName >
< / LoanType >

.. shown .not are six knots of LoanType more with the same format as the above...

< / LoanDecision >



my code snippet:
-------------------
URL url = new URL ("xmlUrl");
DOMParser parser = new DOMParser();
parser. Parse (URL);
Doc document = parser.getDocument ();
NodeList mainNodeList = doc.getElementsByTagName("LoanType");

for (int mainNodeIt = 0; mainNodeIt < mainNodeList.getLength (); mainNodeIt ++) {}
E node = mainNodeList.item (mainNodeIt);
NodeList children = e.getChildNodes ();
out.println ("primary node:" + e.getNodeName () + "with" + children.getLength () + "of the children.) < br >");

for (int childIt = 0; childIt < children.getLength (); childIt ++) {}
Node ee = children.item (childIt);
String name = ee.getNodeName ();
If (name.equals ("ShortName") | name.equals ("LongName")) {}
out.println (name + ":" + ee.getNodeValue () + "< br >");
}
}
}



results:
--------
Main node: LoanType with 7 children.
ShortName:null
LongName:null
Main node: LoanType with 7 children.
ShortName:null
LongName:null
Main node: LoanType with 7 children.
ShortName:null
LongName:null
Main node: LoanType with 7 children.
ShortName:null
LongName:null
Main node: LoanType with 7 children.
ShortName:null
LongName:null
Main node: LoanType with 7 children.
ShortName:null
LongName:null
Main node: LoanType with 7 children.
ShortName:null
LongName:null

getNodeValue() always returns null.
Replace getNodeValue() by getFirstChild () .getNodeValue)

Tags: Oracle Development

Similar Questions

  • Analysis of XML with SAX parser

    
    
    
      
         
        
                
        
                
            
        
        
                
        
                
            
    
    
        
                
    
        
                
          
    
    
        
                
    
        
                        
    
            
                
    
        
                
        
                
    
        
                
        
    
    
    

    It comes to my XML. I am able to analyze using the DOM parser, bt I m new analysis SAX. Can someone help me to analyze it using SAX parser

    There is a snippet of Code to call the HTTP Xml & only to the analyzed using Sax parser.

    SAXParserImpl saxparser = new SAXParserImpl();
    ListParser receivedListHandler=new  ListParser();
    static DataInputStream din = null;
    public static String response;
    
        HttpConnection hc = null;
            OutputStream os;
               try
               {
                   final String url =""+ InitClass.getConnectionString()+";ConnectionTimeout=25000";
    
                   hc = (HttpConnection)Connector.open(url);
    
                   os = hc.openOutputStream();
                   os.write(postDataBytes);
    
                   if (hc.getResponseCode() == 200)
                        din = hc.openDataInputStream();
                    else
                        response = "" + hc.getResponseCode();
                    saxparser.parse(din, receivedListHandler);
               }
               catch (Exception e)
               {
    
               }
               finally
               {
                  try
                  {
                      if(din!=null)
                          din.close();
                      din = null;
                      if(hc!=null)
                          hc.close();
                      hc = null;
                  }
                  catch (Exception e) {   }
               }
    

    class Analyzer

    public class ListParser extends DefaultHandler
    {
    private String Key="";
    private  Hashtable ht=new Hashtable();
    vector vec = new Vector();
    public ListParser()
    {
    
    }
    /**
    * Gets called, whenever a Xml is start .
    */
    public void startDocument() throws SAXException
    {
    
    }
    /**
    * Gets called, whenever a Xml is End .
    */
    public void endDocument() throws SAXException
    { 
    
    }
    /**
    * Gets called, whenever a new tag is found.
    */
    public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
    {
        if(name.equals(""))
        {
            ht = null;
            ht = new Hashtable();
        }
        else if(name.equals(""))
        {
    
        }
        Key=name;
    }
    
    /**
    * Gets called, whenever a closed tag is found.
    */
    public void endElement(String uri, String localName, String name) throws SAXException
    {
        if(name.equals(""))
        {
            vec.addElement(ht);
        }
    }
    public void characters(char[] ch, int start, int length) throws SAXException
    {
        String element=new String(ch, start, length);
        ht.put(Key, element);
    }
    }
    

    It will analyze your XML file and you will get data of vector vec in hash tables by XML tag.

  • Analysis of XML with Namespace

    Hello

    Can someone help me with the following: -.
    I have an XMLType in pl/sql as follows:

    <? XML version = "1.0" encoding = "utf-8"? >
    < rapdrpProcessCIN:GetCINRes xmlns:rapdrpProcessCIN = "http://rapdrp.com/processcin/transactional/model/1.0/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://rapdrp.com/processcin/transactional/model/1.0/."
    xmlns:N1 = "http://rapdrp.com/common/bodcomponents/transactional/model/1.0/".
    xmlns:N2 = "http://rapdrp.com/gis/cin/business/model/1.0/" >
    < rapdrpProcessCIN:ApplicationArea >
    < N1:Sender >
    < N1:Id > PRT01 < / N1:Id >
    < / N1:Sender >
    < N1:Receiver >
    < N1:CompanyName > MGVCL < / N1:CompanyName >
    string of < N1:CompanyId > < / N1:CompanyId >
    < / N1:Receiver >
    < N1:Reference >
    < N1:BODCreationDateTime > 1697 - 02-01 T 00: 00:00Z < / N1:BODCreationDateTime >
    < N1:BusinessProcessId > BP014 < / N1:BusinessProcessId >
    string of < N1:MessageId > < / N1:MessageId >
    string of < N1:TransactionId > < / N1:TransactionId >
    string of < N1:Username > < / N1:Username >
    string of < N1:Token > < / N1:Token >
    < / N1:Reference >
    < / rapdrpProcessCIN:ApplicationArea >
    < rapdrpProcessCIN:DataArea >
    < rapdrpProcessCIN:CIN >
    string of < N2:CIN > < / N2:CIN >
    < / rapdrpProcessCIN:CIN >
    string of < rapdrpProcessCIN:ConsumerNumber > < / rapdrpProcessCIN:ConsumerNumber >
    string of < rapdrpProcessCIN:SRNumber > < / rapdrpProcessCIN:SRNumber >
    < / rapdrpProcessCIN:DataArea >
    < / rapdrpProcessCIN:GetCINRes > note the tag < message > xmlns attribute is "" which is unusual, but not something I can't change.

    I want to retrieve the text string of the BusinessProcessId tag. I tried the following:

    DECLARE
    v_result varchar2 (32765);
    XMLType v_xml;
    BEGIN
    v_xml: = XMLType ('... over XML...');
    v_result: = xmltype.extract (v_xml, ' / rapdrpProcessCIN:GetCINRes / rapdrpProcessCIN:ApplicationArea / BusinessProcessId/reference/text () "," xmlns:rapdrpProcessCIN = "http://rapdrp.com/processcin/transactional/model/1.0/" ""). getStringVal();

    dbms_output.put_line ('v_result :'|| v_result);
    END;

    ... and I get the following result:

    ORA-30625: shipping method on the argument NULL SELF is not allowed
    ORA-06512: at line 6

    What I am doing wrong?
    Any help appreciated.

    Kind regards
    Himani

    Hello

    /PurchaseOrder/ShippingInstructions/name/text()
    

    Given that the 'name' element is empty, XPath leads to a NULL XMLType instance and so the error ORA-30625.

    If you want to retrieve a single value (that is, an attribute or a text node), you must always use the extractValue() or function XMLQuery() function in 11g (see my previous post).
    So in your example:

    ...
    
    --v_result := xmltype.extract(v_xml,'/PurchaseOrder/ShippingInstructions/name/text()','xmlns="http://rapdrp.com/processcin/transactional/model/1.0/"').getStringVal();
    
    select extractValue( v_xml,
                         '/PurchaseOrder/ShippingInstructions/name',
                         'xmlns="http://rapdrp.com/processcin/transactional/model/1.0/"' )
    into v_result
    from dual;
    
    dbms_output.put_line('v_result:'||v_result);
    
    ...
    
  • Doc problem analysis of XML with XPath

    I'm trying to parse the XML in an RSS feed for information. I'm able to do perfectly for 1 of the RSS links, however, with the other, I can't seem to get the information. Here is the link the code works now for:

    http://www.SimplyHired.com/a/job-feed/RSS/sq-Atlanta%2c+GA/o-35/FFT-Cook



    And here's the RSS link I am trying to adapt my code to use for:

    http://Auburn.craigslist.org/FBH/index.RSS



    And here is my pl/sql code:
    LOOP
      utl_http.set_proxy(apex_application.g_proxy_server, NULL);
      l_http_req := utl_http.begin_request(i.LINK);
      l_http_resp := utl_http.get_response(l_http_req);
      dbms_lob.createtemporary( l_clob, FALSE );
      dbms_lob.open( l_clob, dbms_lob.lob_readwrite );
      begin
        loop
          utl_http.read_text(l_http_resp, l_buffer);
          dbms_lob.writeappend( l_clob, length(l_buffer), l_buffer );
        end loop;
        exception
         when others then
          if sqlcode <> -29266 then
           raise;
          end if;
      end;
      --
      utl_http.end_response(l_http_resp);

      apex_collection.add_member(
        p_collection_name => 'RSS_RESPONSE',
        p_clob001         => l_clob );

      apex_collection.add_member(
        p_collection_name => 'RSS_RESPONSE_TOTAL',
        p_clob001         => l_clob );


      -- Extracting values from the collection and storing
      -- the results in a table.
      FOR x in (
      SELECT extractValue(value(t),'/*/title') Title,
             extractValue(value(t),'/*/link') Link,
             extractValue(value(t),'/*/pubDate') PublishDate,
             extractValue(value(t),'/*/description') Description
      FROM apex_collections c,
           table(xmlsequence(extract(xmltype.createxml(c.clob001),'/rss/channel/item'))) t
      WHERE c.collection_name = 'RSS_RESPONSE'
      )
      LOOP

        SELECT count(1) into counter_var
        FROM JOB_RSS_FEEDS_CONTENT
        WHERE LINK = x.Link;
         
        if (counter_var > 0) then
          counter_var := 0;
        else
        
          SELECT JOB_RSS_FEEDS_SEQ.NEXTVAL INTO link_counter FROM DUAL;
     
          INSERT INTO JOB_RSS_FEEDS_CONTENT(ID, TITLE, LINK, DESCRIPTION, JOBTYPE, PUB_DATE, METROAREA, STATE, ZIPCODE, LINK_SOURCE)
          VALUES (link_counter, x.Title, x.Link, x.Description, i.POSITION, to_date(substr(UPPER(x.PublishDate), 1, length(x.PublishDate)-3), 'DY, DD MON YYYY HH24:MI:SS'), initcap(i.METROAREA), upper(i.STATE), i.ZIPCODE, i.LINK_SOURCE);

        end if;
      END LOOP;


      --resetting our collection to be used for the next rss feed
      apex_collection.create_or_truncate_collection('RSS_RESPONSE');
      l_clob := NULL;
      l_buffer := NULL;
     
     
      --
      -- If no records left to process or if we've cycled through
      -- links_to_read_in iterations, then exit loop.
      --
      if ((tmp_count = 0) or (loop_count >= (links_to_read_in-1))) then
        exit;
      end if;


      -- incrementing our iteration counter
      loop_count := loop_count + 1;

    END LOOP;  -- for SELECT LINK, METROAREA, STATE, ZIPCODE loop
    I thought that the problem is with the line:
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/rss/channel/item'))) t 
    I tried to change to:
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/'))) t 
    And then:
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/rdf/item'))) t
    But those who do not work either. Can't think of what it could be. Any thoughts?

    Published by: taneal on October 27, 2008 12:05

    In order to rule out any problems with the table of the apex, you might want to check the single clob.

    Instead of

    SELECT extractValue(value(t),'/*/title') Title,
               extractValue(value(t),'/*/link') Link,
               extractValue(value(t),'/*/description') Description
        FROM apex_collections c,
              table(xmlsequence(extract(xmltype.createxml(c.clob001),
                 '/rdf:RDF/item',
                 'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"'))) t
    WHERE c.collection_name = 'RSS_RESPONSE'
    

    test this

    SELECT extractValue(value(t),'/*/title') Title,
               extractValue(value(t),'/*/link') Link,
               extractValue(value(t),'/*/description') Description
        FROM table(xmlsequence(extract(xmltype.createxml(l_clob),
                 '/rdf:RDF/item',
                 'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"'))) t
    

    Note that I've changed from c.clob001 to l_clob.

    or even

    SELECT extractValue(t.column_value,'item/title') Title,
           extractValue(t.column_value,'item/link') Link,
           extractValue(t.column_value,'item/description') Description
        FROM table(xmlsequence(extract(xmltype.createxml(l_clob),
                 '/rdf:RDF/item',
                 'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"'))) t
    

    I also imagine that we should add the other namespaces too. My example has only a namespace inside.

    Published by: Sven w. on October 29, 2008 17:38

  • Analysis of xml with QT

    Hello

    Is there a way to parse the XML in a QString? All of the examples on the web shows how to parse the XML for the file, but none of them shows how to parse XML from a QString. I have a server for my app to connect to via TCP/IP, and the server then sends the XML to the client (app) to be scanned, it will be a waste of resources prior to writing the XML to a file.

    I have the base sax parser and my implementation looks like this

    XMLHandler * m_handler;

    QXmlInputSource * source = new QXmlInputSource (new QFile("asset:///responseMessage.xml"));)

    QXmlSimpleReader reader;
    reader.setContentHandler (m_handler);

    Reader.Parse (source);

    How can I change this line

    QXmlInputSource * source = new QXmlInputSource (new QFile("asset:///responseMessage.xml"));)

    to use a string input, and not a file? I know that QXmlInputSource class does not support a string of implementation is if there is another approach in the API that I can use?

    Thank you for all the advice!

    I found the solution. I changed my class instead to use a QXmlStreamReader. It can take values QByteArray in its constructor so I just called the QString toAscii method to convert the string received from my server to a QByteArray and passed to the QXmlStreamReader. This implementation does not require major changes to my manager so I think it works best for my situation. Thanks for all the help guys.

  • Filtering XML with E4X data

    Hello

    I have a document xml with the following syntax

    <shelf>
        <name>
          <![CDATA[Stationery]]>
        </name>
        <tier>
                         <hard level="2"/>
                         <easy level="1"/>
              </tier>
    </shelf>
    
    

    In the XML above, the there is more than one < shelf > with < level > tag which may have 1 or more < easy > or < hard > (or both) tags. To try to filter an xml structure to get an XMLList of objects < shelf > needs a tag in the tag < level > < last > with a @level of 1 using the E4X attribute

    XML. Shelf. (tier['hard'].@level == 1)

    I get AN object back when there is obviously more < shelf > with a tag < level > < hard > @level = 1

    Then E4X to manage such a complex filtering?

    Well I notice a few things. You have a few attributes level which are not met. And there is one node that has two different hard knots. Assuming that's true, then I think you could get both with

    XML. Shelf. (hard. (@level=="1").length ());

    I'm not really sure I can explain why it works. I found it here in this tutorial http://www.senocular.com/flash/tutorials/as3withflashcs3/?page=4.

  • My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also backed u

    My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also saved to the time capsule. Everything is in 'Data' when I look through the Airport utility. I think that the information that I've lost are still there since I was a Capsule 3 to.

    Time Machine backup to a sparsebundle.

    The sparsebundle will use the share name of computer. So, it should be obvious who is your Macbook and that is your Macpro.

    Open the sparsebundle in Finder and keep open the subfolders until you get to the backup of each separate hard drive...

    You has of course set the exclusion in Time Machine?

    By default, Time Machine will exclude your second drive unless you have included it. Did you?

    Once you get to this level during the backup, you can do a full restore manually whenever you want.

  • Recovery of Windows 7 with new HARD drive

    Hello Forum

    If you guys helped me with the HARD 'bankrupt' drive - and I have a new drive HARD ready to install.
    But I need to back up the operating system (Windows 7).

    I don't have an external hard drive PC configured.
    I have the DVD. I have a memory stick (empty - but unknown to memory capacity).
    There is little data to be transferred (and to be honest - if it was over it would not be the end of the world).

    So I just need to back up the operating system.
    I went in the 'create a back-up' then 'create a system image '.
    But (and I may be wrong here) it seems that if she needs a greater memory than the DVD I inserted.

    The indices here folks?

    And - waaaay out of my comfort zone. So any help is appreciated.

    Thank you.

    Helpless dad.

    > I went in the 'create a back-up' then 'create a system image '.
    This has nothing to do with the picture Toshiba Recovery and recovery disc. There is option of Windows.

    If I have the right of you you want to create DVDs that you can use to clean the OS recovery installation of recovery. How it can be done is described in the document s user manuals.

    Anyway, recovery media can be created using preinstalled Toshiba Recovery disk creator tool.

    Check it out please
    By the way: has your laptop at the moment factory settings?

  • Problem with new HARD drive and Qosmio Player installation

    Hi all
    I hope someone can help, I had my Qosmio for 2 1/2 years now and recently had a problem with the hard drive. I decided to replace the hard drive, because it was the fastest solution. The problem I have now is that I can't receive TV on media center. I tried to install qosmio player at the disk to see if it made any difference, but when I run the provided recovery disc software tells me that there is not enough disk space! The laptop came with a 60G hard drive and the new HARD drive manufactured by the same manufacturer is a 150 GB, can someone help me out with this would be appreciated.

    Thank you
    ED.

    Have you tried to install Qosmioplayer initially, then on operating system? If I remember well, on this first portable Qosmio, it was very important to install Qosmioplayer initially.

  • Re: System Restore disk compatibility with disk HARD Non - Toshiba

    I have problems with my hard drive and decided to change hard drive Toshiba. If the restore for my laptop disk may be able to work with a no toshiba hard drive if the whole system is the same?

    Why not? I don't see any problem there.

  • A40: problems, I think that with a hard drive

    Hello! Bit of background - had a laptop Toshiba SA40 ISI during a little less of 2 years, and there have been some major problem with it in these last days (until then it had been beautiful and functional with brio).

    He started working yesterday incredibly slowly, took forever to load, kept on crashing etc. After the restart for the 5th time, it would have just send me to the "Windows didn't load correctly screen ' and ask me to select an option, and whatever that I did sent me to the toshiba load screen, Windows does not at all.

    So I had use the product recovery disks and reformat the hard disk. For half a day, the laptop was working once again excellent, no problem. Then this morning, out of nowhere, it completely crashed again. I rebooted, and again the same problems appear. But now I can't used the product to reformat recovery disks. A few times he reformatted then the screen became all black. The error messages became more in worst - now, when I'm trying to recover, comes up with an error message:

    GDISK (e) cannot write to sector 0 of the fixed disk 1 - the IDE controller error

    F0ollowed by a little more information, I have not a chance to note that the screen then recovering flashed, then the screen says:

    !!!!!!!!!! Error!

    Then a screen that says:

    DAY 02/05/06
    Error No.: 11030
    Message: Invalid destination drive

    He has gradually deteriorated. I think there is a problem with the hard drive, the previous messages referred to make it incapable of partition. It is quite anmnoying as it came straight from heaven. Everyone has experienced or heard of something like that? Anyone know what is the problem or what to do? How do you think it will cost you for difficulty? I don't know if it is covered by the warranty, or if this series comes with 2 year warranty.

    Any help would be much appreciated

    Russell

    Hello

    If the warranty is valid, then all replacements will be done free of charge. If you are not 100% sure so call the Toshiba service in your country. Please note; If you open the notebook (remove covers) by yourself if you will lose the warranty.

  • Satellite Pro 480CDT does not start with mounted HARD disk?

    Hello
    I have tried several disks in my Satellite Pro 480CDT, but none of them starts. The screen stays black and the power led blinks orange (long, short, short, short, short, long, short, short). If I drive the machine past the on-screen "In Touch With tomorrow, TOSHIBA. He sees Windows CD-ROM or a floppy disk. I tried with 6 hard drives all below to 6 GB and AFAIK the work. I tried with another 480CDT a 220CS and a 2140CDS. Surely all hard drives and computers laptops have the same flaw? What I need to update BIOS or something as none of the drives are original for the machines.
    Help, please!
    Thank you

    John.

    Hi John

    I'm afraid of nothing that you can do everything alone. When the electronic power supply detects a power problem, it sends the hex code. In this case you should contact the technicians. They can read this code and will know what the problem is here.

    Just FYI: I discovered this disc HARD original for this unit has the P000244000 part number. Maybe it will help you get another HARD drive for testing.

    Sorry I can't tell you more info on this good old classic.

  • Satellite A20-S103 - crackling noise with new HARD drive

    Hello together

    I upgraded my laptop A20-S103 with a hard drive Western Digital WD2500BEVE 250 GB running under Windows XP Pro.
    Since then, I have problems with the sound and the movement of the mouse when the CPU usage is high.

    Up to 50% of its use, works well but before I crack and mouse sticks and made jumping movements.
    The BIOS and drivers are updated to the latest versions of Toshiba online.
    After awhile and a lot of research, I got also the HDD running in DMA mode with the IDE4008.exe ALI tool isn't that hard drive is running in PIO mode.

    In addition, I think that the speed of the hard drive is low when the CPU usage is high.

    Please also read http://forums.computers.toshiba-europe.com/forums/thread.jspa?messageID=89990𕾆 that is showing that I'm not the only one with this problem.

    Anyone know a solution?

    I agree with Akuma. You should try to update the BIOS and drivers from the chipset and see if it works or not.
    It's worth to try ;)

    The two you can find here:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

  • Y480 - laptop does not start with attached hard drive enclosure.

    My laptop started clicking and will boot LAN, so I opened it and looked at the hard drive. All seemed well, it wouldn't be fair to start. Then I removed the metal casing around it and stuck the drive in. Everything started normally. Chkdsk shows nothing wrong with the hard drive, and I'm not sure why remove the dressing would affect startup. All the thoughts/solutions?

    Blue... temporarily parts of the sponge to keep the HARD drive in place.

    and if your Y480 is still under warranty, can consult a Support technique Lenovo...

    http://support.Lenovo.com/en_US/feedback/detail.page?LegacyDocID=MIGR-76613

    Good luck... Zehn

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

Maybe you are looking for

  • Thunderbird disconnects when I farm, how can I solve this problem?

    This problem is a variant of another problem in the forums. I use Thunderbird on a Windows 7 platform. When I close Thunderbird, it disconnects. When I reopen it Thunderbird, it asks if I want to work online. I won't start the PC between the close an

  • After a scan of Norton, has lost all the emails in the Inbox.

    Original title: to replace computer yesterday I did a norton scan, then we went to a reboot. The computer says that there is someone else connected, and they would lose data there. I clicked restart, when it came I had lost all my emails in the Inbox

  • Out of paper error when there is paper

    My computer gives me an error that my printer is paper and it is not.  He did it with three different printers.

  • Inspiron DVD problem

    on my dvd drive Inspiron e1405 (sony dvd + rw dw q58a) dvd reading stopped, but I can run and burn regular CD. I erased second decoder with nothing doesn't. all advice? thnx

  • hardver eszk z

    Hyppolit eszkoz (code 43): miert nem ismeri fel a Win7 x 64 a TomTom GPS XXL - t, a Canon LIDE 35 scannert?