How to add a internal dtd to my xml file

I am using the xml parser for PL/SQL, how can add a internal dtd to my xml file..
Thanks in advance...

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
Sorry, there is not an API to set internal DTD.
But you can set external DTD by using:
PROCEDURE setDoctype(doc DOMDocument, root VARCHAR2,sysid VARCHAR2, pubid VARCHAR2)<HR></BLOCKQUOTE>
Thanks for your replay...
null

Similar Messages

  • How to add attribute to the elements in XML file in BPEL transformation

    Hi All-
    I have to create a XML file using transformation and file adapater and the parent element is USERRECORDS, now when I am creating the XML file using transformation the XML get creates like
    <?xml version="1.0">
    <USERRECORDS>
    so on
    But I want the parent element and the xml version tags as:
    <?xml version="1.0" encoding="UTF-8"?>
    <USERRECORDS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="mySchema.xsd">
    as I need to add the attributes.
    Is it possible in transformation?
    Any idea, please suggest.
    Thanks and Regards,
    Sreejit

    I have never come across any functionality like that.
    However I assigned values to attributes in Assign Acitivity using XML Fragment on source side.

  • How To ADD Child inside the childe in XML File

    I want to write setting file using XML toolkit.
     in that I am facing proble to add child in side the child.
    Please Guide me to resilve this problem.
    Thanks
    Prabhakant Patil
    Regards
    Prabhakant Patil
    Solved!
    Go to Solution.

    Perhaps it would be also helpfull if you post your code.
    Attachments:
    testxml.vi ‏12 KB

  • How to add an internal link on pages 5.0.1?

    Could anyone please tell me how to add an internal link on pages 5.0.1.
    I am making FAQ list, and I would like to make the first page of the document as a list of questions and when a user click on each question, it jumps to the answer (in the same document).
    I found "Add link" tool but it allows you to jump URL or email only.
    I was able to  set the list of questions as an index page of "Table of contents" tool and jump to a question page by clicking each page number, however, it fails when I put a question in a table (I would like to place each question and answer in tables for a visual purpose).
    It seems a jump by using "Table of contents" become invalid when the contents are placed in a chart.  WHy?
    Are there any way to solve this problem?
    any advise will be appreciated.

    Bookmarks have been removed from Pages 5 along with 90+ other features.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=bb95ac0944151 2bc797f0c2dbd918f4c&mforum=iworktipsntrick
    You may have Pages '09 still in your Applications/iWork folder.
    The T.O.C. does not index text inside objects which includes Tables.
    Peter

  • Internal table data to XML file.

    Hi All,
    May I know how can we convert the internal table data to xml file?
    Regards
    Ramesh.

    Re: Convert XML to internal Table
       Go through the link..u should be able to solve the problem..

  • How to edit the existing data in the XML file from java programming.

    Hi all
    i am able to create XML file with the sample data as below from java programming.
    i need sample code on how to edit the existing data in the XML file?
    for example
    <?xml version="1.0"?>
       <mydata>
               <data1>
                         <key1>467</key1>
                        <name1>Paul</name1>
                        <id1>123</id1>
              </data1>
              <data2>
                         <key2>467</key2>
                        <name2>Paul</name2>
                        <id2>123</id2>
              </data2>
        </mydata>
    i am able to insert the data in the XML.
    now i need sample code on how to modify the data in the above XML file from the java programming for only key2,name2,id2 tags only. the remaining tags data in the XML file i want to keep same data except for key2,name2,id2 which are i want to modify from java code
    Regards
    Sunil
    [points will be always rewardable]

    hi
    u need a parser or validate the xml file for to read the xml file from java coding u need for this
    xml4j.jar u can download this file  from here
    http://www.alphaworks.ibm.com/tech/xml4j
    or we can use the SAX(simple API for XML)
    some sample applications for this
    http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
    http://www.developertutorials.com/tutorials/java/read-xml-file-in-java-050611/page1.html
    http://www.xml-training-guide.com/e-xml44.html
    let me know u need any other info
    bvr

  • How to get the attribute value of an XML file??

    How to get the attribute value of an XML file??
    For example, how to get name and age attributes?
    <student name="Joe" age="20" />

    What are you using to read the XML file??
    On the assumption of JDOM - www.jdom.org. Something along the lines of:SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(filename);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Element thisElement = (Element)children.get(n);
    String name = thisElement.getAttributeValue("name")
    try
         int age = Integer.parseInt(thisElement.getAttributeValue("age"));
    catch (Exception ex)
         throw new InvalidElementException("Expected an int.....");
    }Ben

  • I want to add an tag dynamically into an xml file

    i have created an xml file and parsed it after parsing if a parameter is passed i have to dyna mically create an element and add that child node to the xml file can anyone help me

    You can add nodes to a DOM (Document object model). There are appropriate create methods in the Document object.
    And, if you want to, you can turn the modified DOM back into XML using java.xml.transform classes.

  • Need to add DTD to my XML file

    Hi,
    i have created my XML file and now i have to add DTD to this file. Is there a method to do this?
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();          try {
                 DocumentBuilder builder = factory.newDocumentBuilder();                       document = builder.newDocument();
         catch ( ParserConfigurationException pce ) {
                                pce.printStackTrace();          
    //add DTD here
         Element root = document.createElement( rootName );
         document.appendChild( root );Thanks in advance.
    Nereida

    I'm Having the same problem.
    I generate a XML document using DOM. And the content of this document varies a lot. It is built based on the resultset of a database query. If the query results 3 columns: name, address and fone. The document will have 3 a structure like this:
    <root>
    <row number=1>
    <name>John</name>
    <address>J Street</address>
    <fone>12345678</fone>
    </row>
    <row number=2>
    <name>Peter</name>
    <address>K Street</address>
    <fone>87654321</fone>
    </row>
    </root>
    What i mean is. The tags inside the row tag will allways be different. Depending on the columns from the query.
    This document will be parsed by a SAX Parser (impossible to use DOM becouse the machine where it will be parsed has very few resources). And then I'll need the DTD for parsing it better.
    The problem is. How to create Dynamicaly the DTD for a DOM Document? How to put it in the resulting XML File?
    Thanks!

  • How to add different versions of layout in XML Publisher Report?

    How to add two versions of layout(RTF) for different languages in xml publisher report template so that user can see the report in two languages? Is that possible?
    If so then what is the procedure to do that? Can anyone help in this regard?

    Soma,
    Refer to [Oracle XML Publisher User Guide|http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115xdoug.zip] manual, Page 5-8 Adding Localized Templates for Additional Languages.
    Regards,
    Hussein

  • How to add a date suffix to the log file name

    In Windows, I want to run certain commands and save the output to a logfile every day. How to add a suffix to the log file name so I can distinguish which log file for which day?
    e.g. cmd >> logfile.date

    AZ wrote:
    In Windows, I want to run certain commands and save the output to a logfile every day. How to add a suffix to the log file name so I can distinguish which log file for which day?
    e.g. cmd >> logfile.datemy best friend name is "google", refer to this [url | http://stackoverflow.com/questions/203090/how-to-get-current-datetime-on-windows-command-line-in-a-suitable-format-for-usi]
    This is what i did
    1) created a dummy file in c drive
    2) copy pasted below lines, you can play around more with the format
    set _my_datetime=%date%_%time%
    set _my_datetime=%_my_datetime: =_%
    set _my_datetime=%_my_datetime::=%
    set _my_datetime=%_my_datetime:/=_%
    set _my_datetime=%_my_datetime:.=_%3) Rename the file from dos
    ren some.txt dummy_file_%_my_datetime%.txt4) Here goes the output
    C:\dir
    dummy_file_Mon_09_20_2010_161347_21.txt
    Most of the code i copied from above url, you can tweak a little bit based on ur requirement and format.
    Regards
    Learner                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to write inline DTD  to the xml file?

    Hi All,
    I have java program which outputs a xml file! Currently I need to alter this program to insert inline DTD code in the output xml file.
    I want the xml file to look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE students[
    <!ELEMENT firstname (#PCDATA)>
    <!ELEMENT ssn (#PCDATA)>
    <!ELEMENT student (ssn, firstname)>
    <!ELEMENT students (student+)>
    ]>
    <students>
    <student>
    <ssn>444111110</ssn>
    <firstname>Jacob</firstname>
    </student>
    </students>
    Existing file is as below:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE students SYSTEM "StudentsDTDfile.dtd">
    <students>
    <student>
    <ssn>444111110</ssn>
    <firstname>Jacob</firstname>
    </student>
    </students>
    The DOCTYPE line can be inserted into the xml using transfomer output key but then that always is for external dtd.
    It brings in the line <!DOCTYPE name SYSTEM " path"> .
    But i need an internal DTD. SO it should look like
    <!DOCTYPE name [<ELEMNETS>]>
    I am using DocumentBuilder class.
    Thanks in advance,
    Mathew
    Edited by: Mathew_Jacob on Jul 12, 2008 12:49 AM

    Or If Labview schema is acceptable, it is fairly straight forward.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How to add another secure url in web.xml?

    hello i want to secure my web application i have two kind of users i have users and admin.each of them has each certificat users have permission to enter /users and admin have permission to enter /admins/ but i want also users to enter another folder which is /otheruserplace how can i add this in my web.xml file here is my code
    http://pastebin.com/m3e13d3d9

    Just add another url-pattern.
    This has nothing to do with JSF however. More suitable place would have been the Servlets forum.

  • How to add a blank line in configurat​ion file

    Hi,
    I would like to add an empty / blank line in my configuration file. (.ini file) as below:
    [H1]
    key1=1
    [H2]
    key2=2
    I don't have any idea on how to add the empty/blank line.
    Could anyone help me on this? 

    In case you do not have such luxury, like me... 
    This example VI show an alternative way of inserting empty line/ space between sections of a configuration file...
    PS1: Note that Additional Empty Element is intentionally added to create/ add empty line/ space between sections... 
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    IFFCT_CFIO_example add empty line between sections.vi ‏64 KB

  • Asdoc how to add a custom local namespace with manifest file?

    Hi there,
    I use the flex 4 beta1 sdk to test the following:
    I have:
    MainScreen.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        xmlns:views="com.xyz.core.view.components.*"
        >
        <views:AbcView id="abcView" right="20" />
    </s:Group>
    I tried to use a manifest file which seems to be how to handle this kind of situation (using ant):
        <arg line="-namespace views ${manifest.file}"/>
        <arg line="-doc-namespaces views"/>
    the manifest.xml contain the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <componentPackage>
               <component id="AbcView" class="com.xyz.core.view.components.AbcView" />
    </componentPackage>
    when I compile asdoc return the following error:
    ...MainScreen.mxml(52):  Error: Type was not found or was not a compile-time constant: AbcView
    Any idea how I can force asdoc to add/recognize AbcView.mxml ? Is my use of manifest file correct in this situation?
    Thank you in advance for your help.
    Best regards.
    maddec

    Hello,
    >Do you have the source path defined?
    yes definitely.
    >and does it contains the folder that is parent of com.xyz.core.view.components ?
    yes absolutely
    >Can you post your complete call to asdoc?
    Please find below the ant task I use:
    Thank you very much for your help.
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="asdoc" default="main" basedir=".">
    <!--
        Properties Definitions
    -->
        <!-- The Location of Flex on your Computer -->
        <property name="Flex.dir" location="C:\Program Files (x86)\Adobe\Flex Builder 3 Plug-in"/>
        <!-- The Location of FlexSDK on your Computer -->
        <property name="FlexSDK.dir" location="${Flex.dir}\sdks\4.0.0.7219"/>
        <!-- <property name="FlexSDK.latest.build.dir" location="${Flex.dir}\sdks\4.0.0.12412"/> -->
        <!-- The Location of ASDocs on your Computer -->
        <property name="asDocs.exe" location="${FlexSDK.dir}\bin\asdoc.exe"/>
        <!-- main path info -->   
        <!--
            The Location of your Application Classes on your Computer
            NOTE: This Path should be relative to the build.xml file.
            NOTE: ${basedir} is an ant property that represents the directory holding the build.xml file
            NOTE: I have encountered issues with this folder containing Spaces
        -->
        <property name="AppClasses.dir" value='-doc-sources "${basedir}/src"'/>
        <property name="asdoc.source.paths" value='-source-path "${basedir}/src/"' />
        <!-- configs -->
        <property name="asdoc.config" value='-load-config="${FlexSDK.dir}/frameworks/flex-config.xml"' />
        <property name="sp.config" value='-load-config+="${basedir}/conditionalCompil.xml"' />
        <!-- additional path info -->   
        <property name="source.path.srcShared" value='-source-path+="D:/analogdesign/Clients/Minsh/flash/GIT-sources/minsh-flex-widget/s rcShared"' />
        <property name="libs.path" value='-external-library-path="${basedir}/libs"' />
        <!-- custom components -->
        <property name="manifest.file" location="${basedir}\ant\customCpnsManifest.xml" />
        <!-- branding data -->
        <property name="window.title" value='-window-title="Minsh API Documentation"' />
        <property name="main.title" value='-main-title="Minsh API Documentation"' />
        <!--
            The Location you wish to output to on your Computer
            NOTE: I have encountered issues with this folder containing Spaces
            NOTE: This location gets DELETED and re-generated each time the build is run
        -->
        <property name="output.dir" location="${basedir}\output\AppDocs"/>
        <property name="asdoc.output" value='-output="${output.dir}"' />
    <!--
        Execute the ASDoc Compile
    -->
    <target name="main" depends="clean,compile" description="full build of asdocs"/>
    <!--
        DELETE the existing output folder and files and then re-generate the output folder
    -->
    <target name="clean">
        <delete dir="${output.dir}" failOnError="false" includeEmptyDirs="true"/>
        <mkdir dir="${output.dir}"/>
    </target>
    <!--
        Run the ASDoc executable and generate the ASDocs to the new output folder
    -->
    <target name="compile">
        <exec executable="${asDocs.exe}" failonerror="true">
            <arg line="${asdoc.config}"/>
            <arg line="${sp.config}"/>
            <arg line="${asdoc.source.paths}"/>
            <arg line="${AppClasses.dir}"/>
            <arg line="${libs.path}"/>
            <arg line="${source.path.srcShared}"/>
            <arg line="-namespace views ${manifest.file}"/>
            <arg line="-doc-namespaces views"/>
            <arg line="${window.title}"/>
            <arg line="${main.title}"/>
            <arg line="${asdoc.output}"/>
        </exec>
    </target>
    </project>
    Best regards.
    maddec

Maybe you are looking for

  • Access to memory slots on b320

    I want to upgrade my ram on my b320 but have hit a brick wall trying to get the back off. I've looked on YouTube where a vid shows it just being slid off but mine won't budge. I don't want to force it or prise it off in case I do damage. Is there a k

  • Using the bluetooth mighty mouse

    My original bluetooth mouse died so I bought the new bluetooth might mouse. This is a really nice mouse. Does it go to sleep like the original bluetooth mouse? I never turned that one off.

  • How to define dependancy between sowtware comps in the SLD

    how to define dependancy between sowtware comps in the SLD, i have a software comp, in the IR, where i import all RFCs and IDOCs, so that they can be used across all software comps in the IR, since, IDOCs imported in one software comp, cant be used i

  • Condition to check Domain Machine

    Hi guys, please, wich is the best solution to know if a machine is member of the Microsoft AD Domain? I am looking for something in ISE conditions but i couldn't see anything related. thanks a lot

  • EXCISE part 2 -MIRO

    In our senario, excise is captured while doing MIGO, and part 2 is posted by J1iex transaction code.then MIRO is done. Without part 2 miro is unable to post. But from last couple of days,few cases is observed, Miro is done without part 2. It happens