Proper XML Header to link to LV Schema

Hello,
I have tried in vain to find the proper header text to add to a file created with the "Flatten to XML" function, in order to link the file to the LV Schema ("LVXMLSchema.xsd").  I understand it needs to be something like:
<?xml version="1.0" encoding="iso-8859-1"?>
<LVData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation='LVXMLSchema.xsd'>
Flattened text here
</LVData>
But this doesn't work.  My goal is to be able to edit LV-generated XML files in an XML-enabled text editor such as jEdit (ie. have the editor show what elements are allowed, and automatically parse and list errors).  I have tried following the example files in C:\Program Files\National Instruments\LabVIEW 7.1\examples\internet ("TestConfiguration.xml" is properly linked to "TestConfiguration.xsd"), but this doesn't work.
The real issue behind this question is this:  We have switched from using .ini files to XML files for storing configuration data for our application.  XML is much easier to read, write, and maintain, however, if the type def used to unflatten the XML is modified, then old files become useless, and need to be recreated from scratch.  Has anyone found an elegant solution to this? (other than manually editing the files)  I would still like to know how to link to the schema, but a more automated solution would be great.
Thanks in advance,
Jaegen

Well, it's good to see Murphy's Law still exists ...
No sooner had I posted this question then I found (by trial and error) the answer myself:
<?xml version="1.0"?>
<LVData xmlns="http://www.ni.com/labview"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.ni.com/labview LVXMLSchema.xsd">
Flattened text here
</LVData>
This seems to work - does anyone know if this is actually completely correct?  I did have to copy "LVXMLSchema.xsd" into the same folder as the .xml file - is there a way around this?  I suppose I could point to the normal "home" of this file on the C: drive, but I'd like to be able to use this on computers without LabVIEW installed, so is there any way to point to a location on the web? (xsi:schemaLocation="http://www.ni.com/labview http://www.ni.com/labview/LVXMLSchema.xsd" doesn't seem to work)
I am still interested in a better solution to my root problem though ...
Cheers,
Jaegen

Similar Messages

  • How to create a link between database schema?

    Hi,
    I have created database link between two database schema (From DBSchema2 i have created database link for DBSchema1). From DBSchema2, i have quried one table (This table is present in DBSchema1). But it throws an error says that Table or View does not exist. Anyone pls tell the detailed way to create database link between schema??
    Thanks,
    Sathish kumar D

    Yes iam trying to Archive
    I said achieve not archive. Anyways so you are trying to archive the data. Can you just detail your requirement ? What exactly do you want ?
    Only few tables will be moved to Archive Schema and other foriegn key tables will have a reference to the Live Schema. So how i can create the link between the Archive Schme to Live schema?
    There is no question of creating database links between 2 schems. It is pure stupidity. If you want to access any object from another schema grant proper privileges and create a synonym for the object. Database links are not meant for this purpose.
    Amardeep Sidhu
    http://www.amardeepsidhu.com

  • Create Link between database schema

    Hi,
    I have created database link between two database schema (From DBSchema2 i have created database link for DBSchema1). From DBSchema2, i have quried one table (This table is present in DBSchema1). But it throws an error says that Table or View does not exist. Anyone pls tell the detailed way to create database link between schema??
    Thanks,
    Sathish kumar D

    Yes iam trying to Archive
    I said achieve not archive. Anyways so you are trying to archive the data. Can you just detail your requirement ? What exactly do you want ?
    Only few tables will be moved to Archive Schema and other foriegn key tables will have a reference to the Live Schema. So how i can create the link between the Archive Schme to Live schema?
    There is no question of creating database links between 2 schems. It is pure stupidity. If you want to access any object from another schema grant proper privileges and create a synonym for the object. Database links are not meant for this purpose.
    Amardeep Sidhu
    http://www.amardeepsidhu.com

  • Create a new line in the xml-header structure.

    Hi,
    Can any one tell me how to create a new line in the xml-header structure.
    I am doing a IDOC-XI-HTTP scenario.
    Actually my mapping create this file:
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    The result must look like this.
    <b><?xml version="1.0" encoding="utf-8"?>
    <ORDERS05>
      <IDOC BEGIN="1">
        <EDI_DC40 SEGMENT="1"> </b>
    Thanks and Regards,
    Eren

    Hi,
    thanks for you quick answer.
    I found a xsl script.
    It works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes"/>
       <xsl:template match="*">
          <xsl:param name="depth">0</xsl:param>
          <!-- New line with indenting. -->
          <xsl:if test="$depth > 0">
             <xsl:text>    </xsl:text>
          </xsl:if>
          <xsl:text>&#xA;</xsl:text>
          <xsl:element name="{name(.)}">
             <xsl:for-each select="@*">
                <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
             </xsl:for-each>
             <xsl:apply-templates>
                <xsl:with-param name="depth" select="$depth + 1"/>
             </xsl:apply-templates>
          </xsl:element>
       </xsl:template>
    </xsl:stylesheet>
    Best regards
    Eren

  • Creating a database link to another schema in the same database

    Hello,
    I'm trying to create a database link to another schema in the same database. It was created without errors, but when I try to use it I receive "ORA-12154: TNS:could not resolve the connect identifier specified" message...
    I'm trying to do it because on my production enviroment the databases are separated, so there I can use database links without problem, but in my development environment it's all in one database separated by schemas...
    So I'm trying to simulate the same system to not need to rewrite the query every time I move from development to production environment.
    Any ideas?
    Thanks

    Hi,
    Yes, you can create a database link to your own database. I've done it before for exactly the same reason you want to.
    (By the way, I think it's a good reason. What are the alternatives?
    Having different versions of code for Development and Production? Absolutely not! Terrible idea!
    Using synonyms or substitution variables that are set differently in the different databases? That might be more efficient than a database link, but efficiency probably isn't such a big issue in Development.
    [Conditional compilation|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/fundamentals.htm#sthref250]? This might be good; it has all the efficienty of the above options, with more clarity.)
    Assuming you do want to stick with a database link, not all errors are caught when you create the link.
    Is the Development database in the tnsnames.ora file of the Development server? Do you have other database links, either in the Development server or pointing to it, that work? What is different about the ones that work, and the one that doesn't?
    Edited by: Frank Kulash on Oct 14, 2009 1:58 PM
    The more I think about this, the more I agree with the earlier respondent: synonymns are a good solution for this.
    To that suggestion you replied:
    On this way I might use "select * from SCHEMA.table" instead of "select * from table@SCHEMA"... I looking for an option to use the second way...Actually, the suggestion was that you say:
    select  *
    from    SCHEMA_table_ptr;where schema_table_ptr is a synonym.
    In Development, that synonym is defined as schema.table.
    In Production, that synonym is defined as table@SCHEMA
    Why are you "looking for an option to use the second way"?
    If you think that people reading the code should realize that the query is being done via a database link (at least in Production), then add a comment.

  • Remove XML Header

    I am developing a Java Servlet and would like to query the database multiple times. I have used OracleXMLQuery and an array to be able to run three separate queries. My problem is occuring in my returned XML Document. Each query comes back with a XML Header such as:
    <?xml version = '1.0'?>
    <Query_1>
    <COL1>10</COL1>
    </Query_1>
    <?xml version = '1.0'?>
    <Query_2>
    <COL1>20</COL1>
    </Query_2>
    <?xml version = '1.0'?>
    <Query_3>
    <COL1>30</COL1>
    </Query_3>
    I have assigned the header separately and would just like to be able to turn off the generated header. My problem is coming when I am trying to use an applet and it does not like when it sees the XML header more than once. Any ideas or hints on how this can be done I would appreciate it.

    Hello this did solve my issue. I have same issue infact. I used this xsl mapping  as
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
    </xsl:stylesheet>
    But my output xml struıcture has broken. Should I  do some changing in my xsl mapping and how ?
    Regards,
    Ceren.

  • Adding Encoding in XML header without mapping

    Hi Gurus,
    I am stuck in a situation where in a pass through scenario, I need to add encoding type in XML header.
    Below is example -
    Current Situation - <?xml version="1.0"?>
    Expected result -  <?xml version="1.0" encoding="UTF-8"?>
    Can anybody help me in this regard? how to achieve this?
    Regards
    Vidhi S

    Hi Vidhi
    Use it in the below way in the receiver adapter.
    Module name: AF_Modules/XMLAnonymizerBean
    Parameter name: anonymizer.encoding
    This will work. I have tested already.

  • Adding additional XML Header in Target XML structure

    Hi all,
    I have a requirement that i need add one additional XML header to target XML messages. At the moment i can see default XML header as ,
    <?xml version="1.0" encoding="UTF-8" ?>
    <Test>
    <Add>Test Mesage</Add>
    </Test>
    But i would like to have one more additional header like below,
    <?xml version="1.0" encoding="UTF-8" ?>
    <?Siebel-Property-Set EscapeNames="false"?>
    <Test>
    <Add>Test Mesage</Add>
    </Test>
    Can some one help me to find a way to adding this additional header?
    Thanks in advance.
    Prasad Babu.

    Hi Prasad,
    Yes it is possible by Java Mapping. Please check my response for similar thread
    Re: Add XML header?

  • XML header for WebServices (SOAP)

    Hi all!
    I have quite strange problem about XML header in SOAP message for WS. Usually I don't care about XML header in SOAP message, because so far I had no problems calling load of WS on different servers. Stnadard XML header that comes out looks like this (1.0 and UTF-8 are in single quotes): <?xml version='1.0' encoding='UTF-8'?>.
    But this time, the webserver I'm trying to call accepts only double quotes, e.g. like this: <?xml version="1.0' encoding="UTF-8"?>, it doesn't understand single quotes at all and there is no way of changing it!
    JDeveloper uses apache soap for standard and makes single quotes. I tried raw http call by wrapping all text into post method -> that works, so webservice is working.
    I can't set anything except endpoint, parameters, method :(
    How can I make call that uses double quotes?
    Pseudo logic is like this:
    Vector params = new Vector();
    params.addElement(xxxx);
    Call call=new Call("xxx", "xxx", params, xxx, Constants.NS_URI_SOAP_ENC);
    Response response = call.invoke(endpointURL, "xxx");

    Hacked Oracle (apache) classes and put right values in it.
    It was hard coded string, who on earth could thought that :D

  • XML header?

    Hi experts,
    I am generatig an xml file. I want to add FileID = "X123" before version="1.0" in the xml header.
    For ex:
    <?xml version="1.0" ?>
    to
    <?xml FileID="X123" Version="1.0">
    Any idea?

    NO. SAP XML parser are the tools created by SAP to work with XML.
    Parsing XML
    All modern browsers have a build-in XML parser that can be used to read and manipulate XML.
    The parser reads XML into memory and converts it into an XML DOM object that can be accessed with JavaScript.
    You will learn more about the XML DOM in the next chapter of this tutorial.
    There are some differences between Microsoft's XML parser and the parsers used in other browsers. The Microsoft parser supports loading of both XML files and XML strings (text), while other browsers use separate parsers. However, all parsers contain functions to traverse XML trees, access, insert, and delete nodes (elements) and their attributes.
    In this tutorial we will show you how to create scripts that will work in both Internet Explorer and other browsers.
    Note: When we talk about parsing XML, we often use the term "Nodes" about XML elements.
    In package SIXML you have the tools and examples for work with XML in an efficient way.

  • Read XML using DB Link

    Gurus,
    Is it possible to read/write XML using DB Link?
    If yes please let me know how to achieve this.
    Thanks in Advance.
    Venu

    You need to use quoted names. SQL Server data dictionary stores names in same case they were entered while Oracle in upper case. So when you issue
    Select test.status from testtable@DBLINK test Oracle parser will look for column STATUS while on SQL Server side it could be stored, for examle, as Status or status. Check column names on SQL Server side and use quoted names. Assuming column name is Status:
    Select test."Status" from testtable@DBLINK test SY.

  • Encoding missing from XML header

    I have to manipulate an XML document. Using Java 1.4.1, I build a Document object based on the XML file, manipulate the Document and output it as attached below.
    The problem is that the xml header in the output does not contain the "encoding" information. I could of course manipulate the output afterwards, but it would not be a neat solution. Any ideas?
    DOMSource domSource = new DOMSource(document);
      StreamResult streamResult = new StreamResult(
           new OutputStreamWriter(System.out , java.nio.charset.Charset.forName("UTF-8"))
      TransformerFactory tf = TransformerFactory.newInstance();
      Transformer serializer = tf.newTransformer();
      serializer.transform(domSource, streamResult);

    When you serialize your output to a Writer, the parser has no way to tell what encoding the Writer uses, so it's up to you to ensure that the parser knows what encoding the Writer is using. Otherwise it will not specify any encoding, essentially assuming the Writer is using either UTF-8 or UTF-16 encodings.
    In your case you don't have a problem, because "no encoding" means that the document is encoded in UTF-8 or UTF-16; it's easy for a parser to examine the first few bytes of the file and tell which it is. Yours is encoded in UTF-8, so it's correct.

  • DB Links in different schemas

    Hi,
    I'd like to change DB links in different schemas with SYS user.
    I've tried to create a script to change all DB links (database it should connect to and password)
    ALTER DATABASE LINK "database_link"
    CONNECT TO database IDENTIFIED BY password;
    ORA-02024: database link not found
    Is there no way to do this as SYS? Do I need to logon to everey schema in the database and alter the DB link?
    Regards
    933746
    Edited by: 933746 on Sep 14, 2012 12:09 PM

    Richard-1 wrote:
    I've hijacked the users password / login as the user / create the db link / reset the users password.
    That is ok for a one off.
    To do more a better solution would be to try a procedure call.
    Here is a link to a couple versions that do what you want:
    http://oraganism.wordpress.com/2009/12/02/how-to-create-a-database-link-in-another-users-schema/
    http://oradbatips.blogspot.com/2010/01/tip-84-create-private-db-link-for-user.html
    Hi and thanks.
    The thing is that I know all the passwords but I'd like to only run one script as system or sys and connect to all schemas with private database links and drop them and then create them with new information. Is this at all possible without writing PL/SQL?

  • FCP XML import and linking .r3d

    I have a sequence that was originally edited in FCP (7.0) using ProRes proxies created out of RedCine. I remember that in Premiere 5.5 when you imported the XML, premiere re-linked the original .r3d's with all the scale and position attributes.
    When I import the XML into Premiere CC it doesn't reconnect the .r3d files.
    Did something change with CC or is there something wrong with the XML?

    Thank you all for your help. It still leaves a bit of a workflow problem. <br /><br />Basically we have some people ingesting / organizing content and maintaining on a network share. Duplicating the media is slow and moving it all into one volume is not too good either as it breaks all the relationships for others. Re-linking is good, but doesn't work if the material is spread across subdirectories and giving a key to link all the media together looses some of the benefit of having the export from FCP in the first place, it's just as easy to re-make the edit.<br /><br />We are only using cut edits, so this is quite simple. For users on the Mac using FCP and handing off to Premier it works fine, the problem is we want to hand off to Windows Premier. It's ok to run a script over the files to change the XML naming of the <pathurl> which seems to be causing the problem, but how to describe this in the Windows world?<br /><br />Thanks for all the help.... anyone from Adobe with any ideas?<br /><br />The problem as I see it is how to identify Mac OS mounts to a Windows version of Premier on XML import.

  • [svn:fx-trunk] 13383: Modify to include the xml header (with encoding) in the DITA xml files.

    Revision: 13383
    Revision: 13383
    Author:   [email protected]
    Date:     2010-01-08 12:04:00 -0800 (Fri, 08 Jan 2010)
    Log Message:
    Modify to include the xml header (with encoding) in the DITA xml files.
    QE notes: None.
    Doc notes: None
    Reviewed By: Pete
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Thats good news.

Maybe you are looking for

  • Error while connectng with the database

    hi, I am working with the oracle load testing for web application and now it is using the default database 10g.Then i have installed 11g database in my desktop And also by using oracle application testing suite database configuration i have connected

  • Running script manually vs within cron = different results

    Running Solaris 9 SPARC Logging in as user oracle (or as root) and running a shell script manually (executing from the command line) everything works, when running the very same shell script from within the oracle crontab file things fail. I believe

  • Standard Program - Parallel Processing

    Hi Gurus - Is there any standard program or transaction which allows me to execute another program parallely ( in background with multiple sessions ) ? ( It's not SM37 ). Thanks John

  • Requirement to select material and plant ?

    Hi, i have below requirement . I have selection screen ..in which material number as selections option and plant as parameters. when ever user executes report i have store the material , plant , stlal(this field is in MAST table ) which are in select

  • Parameter forms in reports9i

    hello i am having a problem so relief is desired from anyone.i have to migrate some 200 reports built in 6i reports and most of them consists of parameter forms so is there any way to have the same functionality in 9i reports without much of the re-w