Import  xml and query

Hi,
Thanks in advance for reading this.
I am new to this XML and import into database.
I have the xml file, i need to import this into database and search on the database.
I have around 2.2 million records in the database.
Please explain me what is best method of storing in database, like store the file in clob column and search on the clob column.How the search is going to be on 2.2 million records.
Please send me any if any sample code you have to [email protected]

The answer on this question also depends on the version of the database you are using.
With 9i/10g i would probably use structured storage of XML (based on the XMLschema).
But the answer also depends on another question: does the XML document contains "2.2 million records" or will you be storing 2.2 million XML documents?

Similar Messages

  • I am Furious. I updated to 12.1 and went from 1400 songs to 28. I have tried everything I can from online including moving previous libray and renaming, uninstall/reinstall/repair, importing xml and nothing.  Any suggestions?

    I am Furious. I updated to 12.1 and went from 1400 songs to 28. I have tried everything I can from online including moving previous libray and renaming, uninstall/reinstall/repair, importing xml and nothing. Any suggestions?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • Large XML and Query performance

    This problem came to me from a Developer and she claims XML query on XMLType field is very slow when using large XML and is there any alternates. Details are below:
    =============
    Query:
    select attributepool_id, attributepool_name, vintage , p.attributepool.extract('//attributepool/segmentationsystem/id/text()').getStringVal() ,
    p.attributepool.extract('//attributepool/datasource/id/text()').getStringVal()
    from saved_attributepools p
    where user_id = 'CLPROFILE2' and vintage = 'SPRING_2003' order by attributepool_name
    Table name:                saved_attributepools
    Space:                    ecommerce
    A Column Name:                attributepool
    attributepool Column Type:      XmlType
    One of xml contains 4Mbytes:     CORE LIFESTLY
    When we try to get the data against this row, query is taking longer.
    conn ecommerce@ecom3 --> 82 seconds (table has 65 rows)
    conn ecommerce@oradev--> 34 seconds (table has only 4 rows)
    We think that;
    Oracle parse the entire XML document and load this document into an 'in-memory' DOM structure before executing the specified xpaths.
    Adding INDEX into XmlType won't help as we don't use whereclasue against XmlType for this case.
    We don't know 10g has solution for this or not.
    Any suggestion will be greatly appreciated.

    This problem came to me from a Developer and she claims XML query on XMLType field is very slow when using large XML and is there any alternates. Details are below:
    =============
    Query:
    select attributepool_id, attributepool_name, vintage , p.attributepool.extract('//attributepool/segmentationsystem/id/text()').getStringVal() ,
    p.attributepool.extract('//attributepool/datasource/id/text()').getStringVal()
    from saved_attributepools p
    where user_id = 'CLPROFILE2' and vintage = 'SPRING_2003' order by attributepool_name
    Table name:                saved_attributepools
    Space:                    ecommerce
    A Column Name:                attributepool
    attributepool Column Type:      XmlType
    One of xml contains 4Mbytes:     CORE LIFESTLY
    When we try to get the data against this row, query is taking longer.
    conn ecommerce@ecom3 --> 82 seconds (table has 65 rows)
    conn ecommerce@oradev--> 34 seconds (table has only 4 rows)
    We think that;
    Oracle parse the entire XML document and load this document into an 'in-memory' DOM structure before executing the specified xpaths.
    Adding INDEX into XmlType won't help as we don't use whereclasue against XmlType for this case.
    We don't know 10g has solution for this or not.
    Any suggestion will be greatly appreciated.

  • Data import XML and CSV

    Hi,
    I have customized incident form and added few fields as per our requirement.
    All customized fields are in a separate class extension "ClassExtension_9cd2b3e6_25ea_4385_9a94_fc08e0cf6172"
    Now we are planing to import incident data from our legacy ticketing tool (Manageengine Servicedesk).
    Here is my XML code 
    <CSVImportFormat>
    <Projection Type="System.WorkItem.Incident.ProjectionType">
    <Seed>
    <Class Type="ClassExtension_9cd2b3e6_25ea_4385_9a94_fc08e0cf6172">
    <Property ID="Id"/>
    <Property ID="Source"/>
    <Property ID="TierQueue"/>
    <Property ID="Classification"/>
    <Property ID="Title"/>
    <Property ID="Urgency"/>
    <Property ID="Impact"/>
    <Property ID="Description"/>
    <Property ID="Priority"/>
    <Property ID="Status"/>
    <Property ID="CreatedDate"/>
    <Property ID="ActualEndDate"/>
    <Property ID="ClosedDate"/>
    <Property ID="ResolutionDescription"/>
    <Property ID="Prod" />
    <Property ID="ParentAccount" />
    <Property ID="CustomerSupportAccount" />
    <Property ID="Hardware" />
    <Property ID="OperatingSystem" />
    <Property ID="Browser" />
    <Property ID="InternetConnection" />
    <Property ID="ProblemAffectsOthers" />
    <Property ID="SalesforceCase" />
    <Property ID="TFS" />
    <Property ID="CustomerSupportAgent" />
    </Class>
    </Seed>
    <Component Alias="AffectedUser" Count="1">
    <Seed>
    <Class Type="System.Domain.User">
    <Property ID="UserName" />
    <Property ID="Domain" />
    </Class>
    </Seed>
    </Component>
    <Component Alias="AssignedUser" Count="1">
    <Seed>
    <Class Type="System.Domain.User">
    <Property ID="UserName" />
    <Property ID="Domain" />
    </Class>
    </Seed>
    </Component>
    </Projection>
    </CSVImportFormat>
    I am getting below error while importing CSV
    Could not import the row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 3 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 4 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 5 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 6 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 7 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 8 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 9 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 10 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 11 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 12 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    Could not import the row on line 13 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. It contains too few fields (number of fields expected 29 , found: 27).
    CSV Import Summary Statistics for file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv
    Instances created in memory: 0
    Instances failed in memory: 12
    Instances committed to database: 0
    Instances rejected by database: 0
    Note:I have 27 Fields in my CSV file.
    Regards, H@ri

    Thanks Andreas,
    I have made changes as suggested by you.But i am getting below error while importing the data.
    ============
    Creating new CSVImporter 
    Data Filename: C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv
    Format Filename: C:\Users\administrator.TEST\Desktop\Incident1.xml
    Validating against XSD schema...
    Validation completed.
    Warning: possible error in row on line 1 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Could not find cached enumeration value Source for property Source, class System.WorkItem.Incident in enumeration cache. You must specify either the Name or Guid of an enumeration of type IncidentSourceEnum.
    Error: Could not import the row on line 1 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. Object creation failed with the following error:
    --> Exception of type 'Microsoft.EnterpriseManagement.CSVImport.CSVInstanceException' was thrown.
    Warning: possible error in row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Matched enum value E-Mail for property Source of class System.WorkItem.Incident in data file with enum display name: E-Mail. Display names may not be unique. Consider using actual property name IncidentSourceEnum.Email.
    Warning: possible error in row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Matched enum value SaaS IT NOC for property TierQueue of class System.WorkItem.Incident in data file with enum display name: SaaS IT NOC. Display names may not be unique. Consider using actual property name Enum.e5d90c8dd3074cf2a241968f3d676cde.
    Warning: possible error in row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Matched enum value EMR for property Classification of class System.WorkItem.Incident in data file with enum display name: EMR. Display names may not be unique. Consider using actual property name Enum.f9c3dc992c584534b420b0fff7d3d426.
    Warning: possible error in row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Matched enum value Medium for property Urgency of class System.WorkItem.TroubleTicket in data file with enum display name: Medium. Display names may not be unique. Consider using actual property name System.WorkItem.TroubleTicket.UrgencyEnum.Medium.
    Warning: possible error in row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Matched enum value Medium for property Impact of class System.WorkItem.TroubleTicket in data file with enum display name: Medium. Display names may not be unique. Consider using actual property name System.WorkItem.TroubleTicket.ImpactEnum.Medium.
    Warning: possible error in row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Matched enum value Closed for property Status of class System.WorkItem.Incident in data file with enum display name: Closed. Display names may not be unique. Consider using actual property name IncidentStatusEnum.Closed.
    Warning: possible error in row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. The following message was logged:
    --> Could not find cached enumeration value Prod1 for property Prod, class ClassExtension_9cd2b3e6_25ea_4385_9a94_fc08e0cf6172 in enumeration cache. You must specify either the Name or Guid of an enumeration of type Prod.
    Error: Could not import the row on line 2 of CSV file C:\Users\administrator.TEST\Desktop\New folder (2)\New folder\Incident1.csv. Object creation failed with the following error:
    --> Exception of type 'Microsoft.EnterpriseManagement.CSVImport.CSVInstanceException' was thrown.
    =======================
    Regards, H@ri

  • I am not getting required output after importing xml file having HTML tags, MathML and Latex code

    I created well formatted xml having html tags, MathML code and Latex code inside
    XML with sample latex
    <question>
        <p> 8. In this problem, <Image  style="vertical-align: -9pt" title="5a\frac{7b}{3}" alt="5a\frac{7b}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%5Cfrac%7B7b%7D%7B3%7D%0A"></Image> and <Image href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%207b%5Cfrac%7B5a%7D%7B3%7D" style="vertical-align: -9pt" title="7b\frac{5a}{3}" alt="7b\frac{5a}{3}"> </Image>are both mixed numbers, like <Image src="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%203%20%5Cfrac%7B1%7D%7B2%7D%20=%203.5" style="vertical-align: -9pt" title="3 \frac{1}{2} = 3.5" alt="3 \frac{1}{2} = 3.5"></Image>. The expression <Image style="vertical-align: -9pt" title="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" alt="5a \frac{7b}{3} \ \times 7b \frac{5a}{3}" href="http://www.snapwiz.com/cgi-bin/mathtex.cgi?%205a%20%5Cfrac%7B7b%7D%7B3%7D%20%5C%20%5Ctimes %207b%20%5Cfrac%7B5a%7D%7B3%7D"> </Image>is equal to which of the following choices? </p>
    </question>
    XML with sample html tags
    <p>4. Examine the expression 3<i>k</i><sup>2</sup> + 6<i>k</i> - 5 + 6<i>k</i><sup>2</sup> + 2.</p><p>When it is simplified, which of the following is the equivalent expression?</p>
    XML with sample MathML tags
    <p>5. Find the vertex of the parabola associated with the quadratic function <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi><mo> </mo><mo>=</mo><mo> </mo><mo>-</mo><msup><mi>x</mi><mn>2</mn></msup><mo> </mo><mo>+</mo><mo> </mo><mn>10</mn><mi>x</mi><mo> </mo><mo>+</mo><mo> </mo><mn>4</mn></math></p>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mn>5</mn><mo>,</mo><mo> </mo><mn>69</mn></mrow></mfenced></math><br>
        <math xmlns="http://www.w3.org/1998/Math/MathML"><mfenced><mrow><mo>-</mo><mn>5</mn><mo>,</mo><mo> </mo><mn>29</mn></mrow></mfenced></math>
    None of the above works fine after importing xml to Indesign document/templete, it is not renderting equivalent out instead it is showing the same text inside tags in the Indesign document.
    I have lot of content in our database, I will export to XML, import to Indesign, Indesign should render required output like what we see in the browser and export the output to printed format.
    Import formated XML to indesign --> Export to Quality Print Format
    Can any one guide me and let me know whether it is posible to do with Indesign, if so let me know in case if I am missing anything in importing xml and get required output.
    Thanks in advance. Waiting for reply ASAP.

    Possibly your expectations are too high. ... Scratch that "possibly".
    XML, in general, cannot be "rendered". It's just an abstract data format. Compare it to common markup such as *asterisks* to indicate emphasized words -- e-mail clients will show this text in bold, but InDesign, and the vast majority of other software, does not.
    To "render" XML, HTML, MathML, or LaTeX -- you seem to freely mix these *very* different markup formats, unaware of the fact that they are vastly different from each other! -- in the format you "expect", you need to apply the appropriate software to each of  the original data files. None of these markup languages are supported natively by InDesign.

  • Importing XML into CS3

    Hiya!<br /><br />I'm using ID CS3.<br /><br />I'm trying to wrap my head around importing XML, and in particular XML that can change.<br /><br />My test project is an FAQ list.<br /><br />The XML looks like this:<br /><br />><?xml version="1.0" encoding="ISO-8859-1"?><br />><?xml-stylesheet type="text/xsl" href="format_web.xsl" ?><br />><br />><TroubleshootingSection><br />>  <Question><br />>    <Q_Number>1</Q_Number><br />>    <Q_Question>The laptop takes longer and longer to find a network >during bootup.</Q_Question><br />>    <Q_Answer>Check the number of Wireless Profiles and delete any >profiles that aren't in use.  When the laptop searches for a network, it >searches through all the wireless profiles before it chooses one.  Each >profile can take up to a minute to check, so this can add significant >time to the search.  The number of profiles should be kept as low as >conveniently possible - only networks that are accessed on a daily or >near-daily basis.</Q_Answer><br />>  </Question><br />><br />>(more questions)...<br />><br />></TroubleshootingSection><br /><br />The setup is that as the document grows, more questions will be added.<br /><br />In my ID document, I have three textboxes.  I tried tagging the text boxes, but the only otion was "root", so I imported the XML document and THEN tried tagging the text boxes.  They each changed color, so I know SOMETHING'S happened.<br /><br />The textboxes are now tagged (respectively) Q_Number, Q_Question, and Q_Answer.<br /><br />Then I created styles with the exact same names and assigned those styles to the matching text boxes.<br /><br />Then I went into the structure menu and mapped the tags to the styles of the same name.<br /><br />What I would LIKE is to be able to import the XML and either:<br /><br />1. Have it all flow into some sort of text frame such that it would take up as many pages as the evergrowing FAQ might require, or<br /><br />2. Have it flow into ID and make a new page for every question<br /><br />At the moment, though, I'm not sure what I do next.  I've followed a couple of tutorials online and usually at this point, they say either "and in a few clicks, you've got your import!" or "so then I imported the file and it filled all the data fields up."<br /><br />I spent yesterday afternoon trying to figure out HOW to flow the XML data into those text frames, but couldn't get it to work.  I searched the forums for Import XML and only found one person seeming to do the same thing I'm trying to do, and also no answer for her.<br /><br />Advice would be appreciated, and even more appreciated would be any sort of step-by-step.<br /><br />Thanks!<br /><br />Edward

    Oh, that XML just did not format well...<br /><br />Here's another try<br /><br />-=-=-=-=-=-=-<br /><?xml version="1.0" encoding="ISO-8859-1"?><br /><?xml-stylesheet type="text/xsl" href="format_web.xsl" ?><br /><br /><TroubleshootingSection><br />  <Question><br />    <Q_Number>1</Q_Number><br />    <Q_Question>The laptop takes longer and longer to find a network during bootup.</Q_Question><br />    <Q_Answer>Check the number of Wireless Profiles and delete any profiles that aren't in use.  When the laptop searches for a network, it searches through all the wireless profiles before it chooses one.  Each profile can take up to a minute to check, so this can add significant time to the search.  The number of profiles should be kept as low as conveniently possible - only networks that are accessed on a daily or near-daily basis.</Q_Answer><br />  </Question><br />  <Question><br />    ... (more questions)<br />  </Question><br /></TroubleshootingSection>

  • Import XML und calculate with MathScript

    First how can I import my XML file to LabView. And second, how to calculate with the Data from XML with constant number. (e.g. XML Number * constant number = x)

    Hi,
    I have no expierence with import XML and reading the XML data. Even some examples I couldn't use it for my problem. I hope that someone can help me.
    I need to get every Data from XML and save every number as a local variable in LabView. So that I can work with the numbers.
    XML:
    <Numbers>
    <figure>50</figure>
    <figure2>100</figure2>
    <figure3>150</figure3>
    <figure4>200</figure4>
    <figure5>250</figure5>
    </Numbers>
    Attachments:
    Test.PNG ‏12 KB

  • Class oracle.xml.sql.query.OracleXMLQuery not found in import

    I tried to perform load java using a non-sys user :
    loadjava -user user1/passwd -v -o -r Archive.java
    but encountered the following error:
    Errors in Archive:
    ORA-29535: source requires recompilation
    Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
    Info: 1 errors
    loadjava: 3 errors
    But if I use sys user I don't have any error:
    loadjava -user sys/manager -v -o -r Arachive.java
    initialization complete
    loading : Archive
    creating : Archive
    resolver :
    resolving: Archive
    Why is this so?
    ANy security setup that I missed?
    Thanks in advance.
    Note:
    my Archive.java file contains:
    // Core Java Classes
    import java.io.*;
    import java.sql.*;
    // Oracle Java classes
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Azman Diron ([email protected]):
    I tried to perform load java using a non-sys user :
    loadjava -user user1/passwd -v -o -r Archive.java
    but encountered the following error:
    Errors in Archive:
    ORA-29535: source requires recompilation
    Archive:11: Class oracle.xml.sql.query.OracleXMLQuery not found in import.
    Info: 1 errors
    loadjava: 3 errors
    But if I use sys user I don't have any error:
    loadjava -user sys/manager -v -o -r Arachive.java
    initialization complete
    loading : Archive
    creating : Archive
    resolver :
    resolving: Archive
    Why is this so?
    ANy security setup that I missed?
    Thanks in advance.
    Note:
    my Archive.java file contains:
    // Core Java Classes
    import java.io.*;
    import java.sql.*;
    // Oracle Java classes
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    <HR></BLOCKQUOTE>
    Managed to solve this problem.
    Drop all xml objects owned by sys and user1.
    Reload xml objcets for user1 with -force option.
    null

  • SSMS 2012:XML File Query: Importing XML data using a CTE-Incorrect syntax near 'BLOB'?

    Hi all,
    From https://www.simple-talk.com/content/print.aspx?article=1756, I mimicked to create the following sql code to do Importing XML data using a CTE:
    ---Importing XML data using a CTE -----Ad-Hoc XML File Query--simple-talk---1020AM 27 Feb 2015
    ---query the XML Blob using a CTE (pulling from the XML file each time
    USE OPENXMLtesting1
    GO
    With XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'C:\XML FilesMicrosoft-Samples\books.xml', SINGLE BLOB) AS XmlData
    SELECT
    FROM XmlFile
    GO
    I got the following message:
    Msg 102, Level 15, State 1, Line 4
    Incorrect syntax near 'BLOB'.
    I have no ideas why it is incorrect in that code statment. Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang
    P. S. The books.xml file was copied from the Microsoft samples:
    <?xml version="1.0"?>
    <catalog>
    <book id="bk101">
    <author>Gambardella, Matthew</author>
    <title>XML Developer's Guide</title>
    <genre>Computer</genre>
    <price>44.95</price>
    <publish_date>2000-10-01</publish_date>
    <description>An in-depth look at creating applications
    with XML.</description>
    </book>
    <book id="bk102">
    <author>Ralls, Kim</author>
    <title>Midnight Rain</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2000-12-16</publish_date>
    <description>A former architect battles corporate zombies,
    an evil sorceress, and her own childhood to become queen
    of the world.</description>
    </book>
    <book id="bk103">
    <author>Corets, Eva</author>
    <title>Maeve Ascendant</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2000-11-17</publish_date>
    <description>After the collapse of a nanotechnology
    society in England, the young survivors lay the
    foundation for a new society.</description>
    </book>
    <book id="bk104">
    <author>Corets, Eva</author>
    <title>Oberon's Legacy</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2001-03-10</publish_date>
    <description>In post-apocalypse England, the mysterious
    agent known only as Oberon helps to create a new life
    for the inhabitants of London. Sequel to Maeve
    Ascendant.</description>
    </book>
    <book id="bk105">
    <author>Corets, Eva</author>
    <title>The Sundered Grail</title>
    <genre>Fantasy</genre>
    <price>5.95</price>
    <publish_date>2001-09-10</publish_date>
    <description>The two daughters of Maeve, half-sisters,
    battle one another for control of England. Sequel to
    Oberon's Legacy.</description>
    </book>
    <book id="bk106">
    <author>Randall, Cynthia</author>
    <title>Lover Birds</title>
    <genre>Romance</genre>
    <price>4.95</price>
    <publish_date>2000-09-02</publish_date>
    <description>When Carla meets Paul at an ornithology
    conference, tempers fly as feathers get ruffled.</description>
    </book>
    <book id="bk107">
    <author>Thurman, Paula</author>
    <title>Splish Splash</title>
    <genre>Romance</genre>
    <price>4.95</price>
    <publish_date>2000-11-02</publish_date>
    <description>A deep sea diver finds true love twenty
    thousand leagues beneath the sea.</description>
    </book>
    <book id="bk108">
    <author>Knorr, Stefan</author>
    <title>Creepy Crawlies</title>
    <genre>Horror</genre>
    <price>4.95</price>
    <publish_date>2000-12-06</publish_date>
    <description>An anthology of horror stories about roaches,
    centipedes, scorpions and other insects.</description>
    </book>
    <book id="bk109">
    <author>Kress, Peter</author>
    <title>Paradox Lost</title>
    <genre>Science Fiction</genre>
    <price>6.95</price>
    <publish_date>2000-11-02</publish_date>
    <description>After an inadvertant trip through a Heisenberg
    Uncertainty Device, James Salway discovers the problems
    of being quantum.</description>
    </book>
    <book id="bk110">
    <author>O'Brien, Tim</author>
    <title>Microsoft .NET: The Programming Bible</title>
    <genre>Computer</genre>
    <price>36.95</price>
    <publish_date>2000-12-09</publish_date>
    <description>Microsoft's .NET initiative is explored in
    detail in this deep programmer's reference.</description>
    </book>
    <book id="bk111">
    <author>O'Brien, Tim</author>
    <title>MSXML3: A Comprehensive Guide</title>
    <genre>Computer</genre>
    <price>36.95</price>
    <publish_date>2000-12-01</publish_date>
    <description>The Microsoft MSXML3 parser is covered in
    detail, with attention to XML DOM interfaces, XSLT processing,
    SAX and more.</description>
    </book>
    <book id="bk112">
    <author>Galos, Mike</author>
    <title>Visual Studio 7: A Comprehensive Guide</title>
    <genre>Computer</genre>
    <price>49.95</price>
    <publish_date>2001-04-16</publish_date>
    <description>Microsoft Visual Studio 7 is explored in depth,
    looking at how Visual Basic, Visual C++, C#, and ASP+ are
    integrated into a comprehensive development
    environment.</description>
    </book>
    </catalog>

    I found the mistakes I made and I corrected them. The newly revised/corrected code is:
    USE OPENXMLtesting1
    GO
    With XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'C:\Temp\books.xml', SINGLE_BLOB) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    It worked: Results
         Contents
    1  <catalog><book.id="bk101"><author>Gambardella.M...
    If I clicked on this, I got a listing of the whole book.xml!!  I don't know what it means.  Please comment and respond.
    Thanks,
    Scott Chang

  • Passing parameters for a query throught XML and capturing response in the same

    Hi All,
    I have defined a RequestParameters object and i am passing paramerts for a query through XML and trying to capture the result in the same and send back to the source. In this case i am send XML from excel.
    Below is my XML format.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Insert xmlns="http://tempuri.org/">
    <dataContractValue>
    <dsRequest>
    <dsRequest>
    <SOURCE></SOURCE>
    <ACTION>Insert</ACTION>
    <RequestParams>
    <RequestParams>
    <ACC_NO>52451</ACC_NO>
    <EMP_CITY>HYD</EMP_CITY>
    <EMP_NAME>RAKESH</EMP_NAME>
    <EMP_CONTACT>99664</EMP_CONTACT>
    <EMP_JOM>NOV</EMP_JOM>
    <EMP_SALARY>12345</EMP_SALARY>
    </RequestParams>
    <RequestParams>
    <ACC_NO>52452</ACC_NO>
    <EMP_CITY>HYD</EMP_CITY>
    <EMP_NAME>RAKESH</EMP_NAME>
    <EMP_CONTACT>99664</EMP_CONTACT>
    <EMP_JOM>NOV</EMP_JOM>
    <EMP_SALARY>12345</EMP_SALARY>
    </RequestParams>
    </RequestParams>
    </dsRequest>
    <dsRequest>
    <SOURCE></SOURCE>
    <ACTION>Update</ACTION>
    <RequestParams>
    <RequestParams>
    <ACC_NO>52449</ACC_NO>
    <EMP_CITY>HYD1</EMP_CITY>
    <EMP_NAME>RAKESH1</EMP_NAME>
    <EMP_SALARY>1345</EMP_SALARY>
    </RequestParams>
    <RequestParams>
    <ACC_NO>52450</ACC_NO>
    <EMP_CITY>HYDer</EMP_CITY>
    <EMP_NAME>RAKEH</EMP_NAME>
    <EMP_SALARY>1235</EMP_SALARY>
    </RequestParams>
    </RequestParams>
    </dsRequest>
    </dsRequest>
    </dataContractValue>
    </Insert>
    </s:Body>
    </s:Envelope>
     Where i have a List of dsRequest and RequestParams, where i can send any number of requests for Insert,Update. I have two a XML element defined in RequestParams "RowsEffected","error" where the result will be caputred and is updated
    to the response XML.
    I have 6 defined in RequestParams
    EMP_SALARY(int),ACC_NO(int),EMP_CITY(string),EMP_NAME(string),EMP_CONTACT(string),EMP_JOM(string)
    My Question is:
    When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
                    ResponseParams.Add(
    newdsResponse()
                        ACTION = OriginalParams[a].ACTION,
                        SOURCE = OriginalParams[a].SOURCE,
                        Manager = OriginalParams[a].Manager,
                        RequestParams = OriginalParams[a].RequestParams
    Where the OriginalParams is dsRequest
    Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
    Is there any way i can avoid this and build response with only the parameters given in the Request ??
    Appreciate ur help..Thanks
    Cronsey.

    Hi Kristin,
    My project is, User will be giving the parameters in the excel, and using VBA, the values are captured and an XML is created in the above mentioned format and is send to web service for the Insert/Update.
    I created a webservice which reads the values from <datacontract> and it consist of list of <dsRequests> where any number of Insert/Upate commands can be executed, with in which it contains a list of <RequestParams> for multiple insertion/Updation.
    //function call
    OriginalParams = generator.Function(query, OriginalParams);
    where OriginalParams is List<dsRequest>
    //inside function
    command.Parameters.Add()// parameters adding
    int
    val = command.ExecuteNonQuery();
    after the execution,an XML element is added for the response part.and it is looped for all the RequestParams.
    OriginalParams[i].Result.Add(
    newResult()
    { ERROR = "No Error",
    ROWS_EFFECTEFD = 1 });
    //once all the execution is done the response building part
    for(inta
    = 0; a < OriginalParams.Count; a++)
                    ResponseParams.Add(
    newdsResponse()
                      Result = OriginalParams[a].Result
    QUEST: When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
    Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
    Is there any way i can avoid this and build response with only the parameters given in the Request ??
    Appreciate ur help..Thanks
    Cronsey.

  • WCF Service and Sharepoint Form library : How i can read a access a form libray and query a item from file name and read form xml in WCF service ?

    WCF Service and Sharepoint Form library : How i can read or access a form libray and query a item from file name and read form xml in WCF service ?
    Ahsan Ranjha

    Hi,
    In SharePoint 2013, we can take use of REST API or Client Object Model to access the SharePoint objects like Form Library.
    SharePoint 2013 REST API
    http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    SharePoint 2013 Client Object Model
    http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/jj193041(v=office.15).aspx
    With the retrieved file, we can then use XmlDocument object to parse it and get the values you want:
    http://weblogs.asp.net/jimjackson/opening-and-reading-an-xml-file-in-a-document-library
    http://stackoverflow.com/questions/1968809/programatically-edit-infopath-form-fields
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

    hi all
    It would be appreciated if any one let me know how to edit
    bitmap which is imported in flash using xml and save the edited
    bitmap back to xml in flash.
    Is it posible to save the bitmap data in flash?
    thanks in advance

    Yes you can... but like I said before you need to upload the
    data from the changes you make to a server.
    In terms of the solution... its unlikely that you'll find one
    specifically for your needs. You will have to learn whatever you
    don't know how already and maybe adapt some existing examples to
    your needs.
    To change the visual state of a movie clip... you just do all
    the regular things that you want to do to it using flash... scale,
    rotation, drawing API , textfields etc in actionscript. If you
    don't know how to how to do that stuff, then you need to learn that
    first. That's basic actionscript.
    You can capture the visual state of a movieclip using the
    BitmapData class. That includes a loaded jpeg. You can also
    manipulate bimatp data using the same class. You should read up on
    that if you don't know how to use it or check out the examples
    below for uploading info.
    For uploading to the server:
    Here's an as2 solution that took 15 secs to find using
    google:
    http://www.quasimondo.com/archives/000645.php
    If you're using as3, google search for "jpeg encoder as3" and
    look through that info. There are also historical answers in the
    forums here related to this type of thing that might help as
    well.

  • Date and time not showing correct whe imported to Power query

    Hi,
    I have an Excel list that I imported to another Excel file via Power query. A few of the imported columns contains date and time, for example 2013-11-09 20:19. When imported to Power query this will show as 41587.84652777778 and only dates/times with zero
    hours and minutes will show correctly. When trying to change the data type to Date/Time it returns an error for all cells containing hours and minutes.
    I use a Swedish version of Excel that uses a different time format compared to standard excel and also uses a , as a delimiter between date and time compared to the . used as delimiter in standard excel. Don't know if that can explain
    this problem?
    Brgds,
    C

    I updated Power query earlier this week, so it should be the latest version. When I created the sample file now the problem appears, so if it is a bug it has not been solved.
    You find the sample file on the link below. 4 sheets with some info on the problem, the data, the query result and one sheet with the data and query result as pictures as it shows in my version of Excel, I guess it will look somewhat different when you open
    the file due to local date/time settings.
    Appreciate feedback on what you find!
    //Caj
    https://skydrive.live.com/redir?resid=94DF9214E3A6D4!107&authkey=!AEuAXX_kPC7yKaI&ithint=file%2c.xlsx

  • About the exporting and importing xml data file in the pdf form

    Hi all,
    I need help for importing xml data file in the pdf form. When I write some thing in the text field with fill color and typeface (font) and exported xml data using email button. When I imported that xml file in the same pdf file that is used for exporting the xml data then all the data are shown in the control but not color and font typeface. Anyone has suggestion for solving this problem. Please help me for solving this problem.
    Thank you
    Saroj Neupane

    Can you post a sample form and data to [email protected] and I will have a look.

  • Problem in importing oracle.xml.sql.query.*

    When i am importing this
    import oracle.xml.sql.query.*;
    it is giving me error that
    "package oracle.xml.sql.query.* does not exist".
    What Should i install or set .

    [from XmlRpc-Java]
    As a result, my XML
    is contained in a String instead of an InputStream.
    It is possible to convert a String to an InputStream using
    StringBufferInputStream, but this class is deprecated in favor of
    StringReader (as StringBufferInputStream does not properly convert
    characters into bytes).
    For the default HTTP transport, an InputStreamReader could be used to
    wrap the InputStream before calling parse().
    Ultimately, the InputStream is converted to an InputSource for use by
    the SAX parser. InputSource will accept a Reader as well.
    [from XmlRpc-Java]
    There should be a way to go from "getXMLString()" to "parse(Reader)" also. In the meantime I'm stuck.
    null

Maybe you are looking for

  • BAPI_PO_CHANGE me22n add profit center for purchase requisition number

    Hello all, I have to add an item line for a specific sales order( p_vbeln ). for that i use BAPI_SALESORDER_CHANGE and it works and the item is inserted. ( p_posnr = sales order item and ln_etnr = schedule_line = 1 ) Now I have to maintain the specif

  • Numbers template problem

    I'm using the expenses template, but when I add a new page it's just a normal blank page. I'm sure there's an obvious solution, but I can't work out how to get the template on the next page too. Thanks

  • How to get payer info ?

    Hi Friends , Good to be a part of such a great online community . I have a program where I do have the sold-to party number .Which table do I get the payer info for this particular sold-to Party . Also If i have vbeln which table do i get the payer i

  • CAF Application services project -Error

    Hi I'm creating in CAF Application services project Application is deployed but go to the CAF UI Admin part get Bellow Error Failed to get service module: error <null> Failed to read configuration data from XML fail. Configuration name: <null> Error:

  • Error when copying purchase order to AP invoice

    When trying to copy purchase orders to AP invoice for one vendor (several invoices).... we receive error "This document cannot be added, becuase the base document row was updated. Copy the document again from its base document. Message 439-197