CS3: Editing of XML tags delete behavior

Hello world

I try to import the XML - tag text into InDesign and use tags to map styles to give it the correct formatting automatically. It works perfectly, but it seems to be a problem when I try to remove or mitigate the paragraphs. In a normal document, deleting a paragraph leaves the next paragraph intact. In my document XML-filled, when I delete a paragraph, following paragraph takes the style of the para, I just deleted. I really want to do this!

Any of you have seen this effect before? Is the problem to do with the way my XML tags are structured? I'm not having luck with the research for this problem, but maybe I don't know the right words...

The tag level paragraph around the next paragraph remains intact, so if I reapply my mapping tags-for-styles, paragraph misstyled now is corrected (but restylings I made or substitutions are eliminated). However, if I remove the brand throughout the document, it refers to the correct behavior.

I would really appreciate any advice you may have on what I'm doing wrong here. It's probably a rookie mistake, but I don't see what I'm doing wrong. I use InDesign CS3.

Thank you very much!

Lester Hawksby

Of the operation when you map tags to styles?

I suspect what could happen is that some of the paragraphs were initially marked by quadruple-click or by mapping styles to tags. One of these involves paragraph returns are included in the tags, so that closing tags occur at the beginning of new paragraphs. Then, when you delete a paragraph, you're left with remnants of old labels of this paragraph (with nothing inside) in the following paragraph. (Check the editor mode to test this.) Now, if you map tags to styles at this stage, a paragraph with residual tags like these can be given the style of a paragraph that was deleted.

The way to avoid it is to ensure the closing tags occur before paragraph returns - but of course if you get InDesign to "clone" for repeated XML elements, the resulting 'cloning' behavior will be different. Consider the possibility of not to include the content of the white elements only to fix. It will probably take a bit of trial and error to work exactly as you want, but it is by for the course!

Jeremy

Tags: InDesign

Similar Questions

  • Cannot delete the XML tag

    Hi all! Working in InD CS6 in Windows 7.

    I have a XML element in a document that I can't do anything with and who does not appear to be associated with what in the file of the InD. The red line is pointing to it on the Panel Structure in the image below. Note the X through its icon.

    ErrantXMLElement.JPG

    The XML is added to the InD file by mapping tags to styles using the Load... button on the dialog box map tags to Styles and 'import' of another document of the InD.

    When right clicking this item in the Structure of Panel and selecting go to point the current selection goes, but then nothing else happens. Or to delete this in the Panel of Structures . I had a similar problem, a bit a go where I somehow finished with elements in the XML file that were not associated with what anyone in the document. Had those text display in the Structure Panel after the name as shown above, but, even once, go at them will not anywhere. I hadn't studied at the time because I could simply remove it from the structure.

    With this element, however, I can't get rid of it without marking not any frame.

    So, I guess I really questions. It's this thing! How the hell he get there? And is there a better way to remove it rather than not tagging any of the frame and have to re - mark all content.

    EDIT: Just found out that using the trash on the pallet Structure to remove the parent of the problematic element, indeed, removes as problematic. Before him, I was just not marking the parent who has transferred only the problem child (like these word games) for the previous parent.

    Thanks for reading this way-too-long-post.

    All the best,

    Ken

    OK (he said with a blush to cheeks) I get noticed something in common, I didn't before posting.

    Page to which cchimi kindly provided a link described icon as a part empty, and it is attached to an empty block. However, it is not only an empty block.

    What happened in our file, is that the script containing the tag with an anchor marker tag xml that InD apparently do not like much. Type of logic, really.

    Now, I may be cracking, but with a single instance of the element of 'bad' I thought THAT I could see the empty element in the story discovers with the anchor to a few characters on. I selected the anchor and dragged back between the start and end code and icon of the item has changed and he returned 'alive', I was able to handle it. For most other troublesome elements, however, sinpy AND marking a marker of the anchor, the XML tag does NOT display in story mode. The element gets the empty icon when you simply tag the anchor marker, in this case it is an anchor for a rule.

    Hope this might help someone, someday.

    Thanks again for reading.

  • delete the text that is inside xml tags

    Hello

    I want to delete the text that is in the xml tags

    IE SELECT ' < XXX > Pune < / XXX > < HD ZZZ > < / ZZZ > ' FROM DUAL must return PuneMH

    Thank you

    VIvek

    Published by: Vivek P on October 7, 2008 08:35
    SQL>
    SQL> --
    SQL> with t as (
      2    select 'PuneMH' as x from dual)
      3  --
      4  select x,
      5         regexp_replace(x,'<.*?>') as modx
      6    from t;
    
    X                            MODX
    ---------------------------- ----------
    PuneMH PuneMH
    
    SQL>
    SQL>
    

    isotope

  • Assign paragraph styles to xml tags correctly. How?

    Hello


    I want to assign xml tags to paragraph styles in InDesign CS6 on a Mac 10.6.8. The XML itself is organized as follows:


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

    < catalog >

    < article id '32434' = >

    "< img href="/bilder/32434.tiff "/ >

    < artikeltextgruppe >

    < artikelmarke > DieselGabana < / artikelmarke >

    < artikelheadline > super Jeans ist < / artikelheadline >

    < artikeltext > Superjeans knallt kidney. < / artikeltext > < number > 70238 < / weight >

    < artikelmaterial > 100% Jeans < / artikelmaterial >

    < artikelgroesse > UK < / artikelgroesse >

    < artikelfarbe > UK < / artikelfarbe >

    < / artikeltextgruppe >

    < / product >

    < / katalog >


    By selecting the option "Assign formats by name to the tags' (translated from the German), I wanted to create the desired look. But if I start all I get is the entire < artikeltextgruppe > textblock assigned to 1 formatstyle. And not to mention that the whole content of < artikeltextgruppe > resembles a single paragraph without any structure (no line breaks) the content is properly structured, because I can highlight the value of e.g. < artikelmarke > separately by doubleclicking the tag in the structure view.


    (a) what can I do to assign formats correctly AND to have correct line breaks?

    "(b) if I drag my node < img href="/bilder/32434.tiff "/ > iin the layout, I get a message posted to search again for the location of the correct reference. And this happens independently on the use of the relative or absolute references (even if I need to use those on) what can I do here?

    Thank you very much

    First of all, I have probably do a search and replace to remove the group element with a text editor ( and elements). They aren't really necessary.

    Secondly, I usually create my styles with the same names as the items themselves. Then, after the XML is imported, I use the command "map tags to styles" in the Structure pane.

    I copied and pasted the single article element to create 4 folders, added a change to an image for each record of the item. Once the paragraph styles have been mapped, your XML looked like this in form of two columns (to get all 4 records on a page)...

    By default, ID creates a single line to a single line in the XML file. So if you want to be on their own line of the elements, the XML must be formatted like this. If you need a different style within a paragraph, you create character styles and edit the items in a group of XML and or paragraph and add the code in the XML file accordingly or post-processing once inside the code.

    I still need to take the XML I gives me and reformat, moves with the tree items, change the links to the images, delete tabs and or spaces where I do not want, tag character styles, etc., to be closer to how I want the original format to be.

    Mike

  • Need help to find and replace grep using Xml tags!

    Hello world

    I have a Textframe with value ($ 00.00) between two xml tags. a tag for "$" and another for a value (00 h 00).

    Now I find these value (00 h 00) and change value (24.10). If I run the script, removing the price tag XML and updated price.

    My expectation is the value of these update without deleting the XML tag.

    Please suggest me where I made the mistake in the code. Please find the code and screenshot for your reference.

    Before running the Script: After running the Script:                                                                                                             

    Screen Shot 2016-09-17 at 5.03.18 pm.pngScreen Shot 2016-09-17 at 5.09.31 pm.png

    Code:

    var flgGREP="[$]\\d+[.]\\d+"
    var Price="$24.10"
    myLine=app.selection[0];
    FindReplaceValue(flgGREP,Price,myLine);
    function FindReplaceValue(findValue,replaceValue,Sapps){
        app.findGrepPreferences = app.changeGrepPreferences = null;  
        app.findGrepPreferences.findWhat = findValue;  
        app.changeGrepPreferences.changeTo = replaceValue;
        Sapps.changeGrep(); 
    }
    

    -yajiv

    This is because the XML (opening and closing of the representations) tag is a special character but a generic.

    So the above grep model fails because you have a text like [TAG] $[TAG] [TAG] 00.00 [TAG] is not picked up by the grep engine.

    However there is not (unless I'm wrong) a metacharacter which could identify the brands of tags. You can do this in text F/R, but of course it is not as smooth as grep.

    Bad news is that these special characters are not saved if you F/R on a labeled content (I mean in the above case).

    Good luck for you is that you seem to know the markupTag that host the price = copy_frame so I'd domething like:

    var root = app.activeDocument.xmlElements[0];
    var copy_frame_tags = root.evaluateXPathExpression (".//copy_frame" );
    var tag;
    
    while ( tag = copy_frame_tags.pop() ) {
         tag.contents=="00.00" && tag.contents="24.10";
    }
    

    HTH

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • Comments of XML tags

    Hello! No idea why my comments will, on occasion, show XML tags? This does not happen systematically and reappears if I replace the comment. I don't want these tags to appear.

    Capture.JPG

    See this thread: comments PDF editing XML after copy and paste

    This paste XML bug happens with great regularity. It seems to be limited to when I paste in the body of the comment in the comments on the right list. Try to paste into the comment directly on the page, and not in the list of comments on the right.

  • Create text online the content of a xml tag frame?

    Hello! I have a pretty big document created from an XML file, and I would like to convert a series of my XML tags to the anchor text blocks, so I can hang them on the left edge of the lines they appear in.

    My XML file is converted into a

    > root

    > Chapter

    > para

    > id

    1

    > verse

    text

    > id

    > verse

    etc... See extract file here http://1drv.ms/1dX6lYO

    So far, I have the following, which gets me an array containing all the elements ID.

    var myDocument = app.activeDocument;
    var myXMLidElement = myDocument.xmlElements.itemByName("book").xmlElements.itemByName("c").xmlElements.itemByName("p").xmlElements.itemByName("id");
    var myXMLidText= (myXMLidElement.contents);
    var myXMLidLength = myXMLidText.length;
    for (var i = 0; i < myXMLidLength; i++) {  //loop to go through
        //alert (myXMLidText[i]);
        myDocument.select(myXMLidText[0]);  //this gives me an error saying expected data type needs to be array. Can someone explain? Where do I find info on the select command?
        myDocument.selection[0].insertionPoints[0].textFrames.add(myXMLidText[0]); //haven't managed to get to this line yet, but I want it to create an inline text frame at the point of the selected text and set the frame's contents to be my XML Id Text
    

    I guess I want and then delete all the text in my id too, but that's not important.

    Some other random excerpts, I could use?

    myInlineFrame.contents = "myXMLidText";
    

    Guidance on the creation of the inline frames and the logic of loop? I'm an old hand with InDesign, but new to scripting, so be gentle.

    Try this,

    var myDocument = app.activeDocument;
    var root = myDocument.xmlElements[0];
    var myXMLidElement = root.evaluateXPathExpression("//book/c/p/id");
    for (var i = 0; i < myXMLidElement.length; i++)
    {
        myDocument.select(myXMLidElement[i]);
        var myTextframe = myXMLidElement[i].placeIntoInlineFrame(["1p","1p"]);
    }
    
  • Remove empty XML tags was turned on, but now we want it shut down. PeopleSoft does not change

    Us that initially, we are living with a set of lines, asynchronous message with "remove it empty XML tags" the value Y. Then, we decided that we don't want to do that and tried to insert a new version of the operation service and message to make it work. Any ideas how to solve this problem because they are very large messages to recreate. Please note that the SOAP content flag is also set at the routing level.

    We need to drop the cache on the web server, force a removal of schema, or drop the cache on the application servers?

    I found that our development environment could be corrupted. I ran engine application VERSION after the update of all of the messages I want to disable 'Remove XML tags' with SQL. I then had the cache of the deleted application server. He has worked in the development.

    In another environment, I did the same update and had removed servers application cache, but was not obliged to run the version. I guess the SQL was may not be not necessary, but I did not check in an environment where access to the application server to really solve the problems.

  • Wandering XML tag

    Hi all! Working in InD CS6 in Windows 7.

    I have a XML element in a document that I can't do anything with and who does not appear to be associated with what in the file of the InD. The red line is pointing to it on the Panel Structure in the image below. Note the X through its icon.

    ErrantXMLElement.JPG

    The XML is added to the InD file by mapping tags to styles using the Load... button on the dialog box map tags to Styles and 'import' of another document of the InD.

    When right clicking this item in the Structure of Panel and selecting go to point the current selection goes, but then nothing else happens. Or to delete this in the Panel of Structures . I had a similar problem, a bit a go where I somehow finished with elements in the XML file that were not associated with what anyone in the document. Had those text display in the Structure Panel after the name as shown above, but, even once, go at them will not anywhere. I hadn't studied at the time because I could simply remove it from the structure.

    With this element, however, I can't get rid of it without marking not any frame. I have a script routine that updates the XML attributes based on the style (s) applied to them. This element, but causes a script script error trying to access to the. Text (1), because there is not, I guess. The script goes through all the XML elements in order to open the Structure and use. Select the item to select an error occurs. But that's ALL!

    So, I guess I really questions. It's this thing! How the hell he get there? And can I do in scripts for "see" it as one element is wandering?

    Thanks for reading this way-too-long-post.

    All the best,

    Ken

    OK (he said with a blush to cheeks) I get noticed something in common, I didn't before posting.

    Page to which cchimi kindly provided a link described icon as a part empty, and it is attached to an empty block. However, it is not only an empty block.

    What happened in our file, is that the script containing the tag with an anchor marker tag xml that InD apparently do not like much. Type of logic, really.

    Now, I may be cracking, but with a single instance of the element of 'bad' I thought THAT I could see the empty element in the story discovers with the anchor to a few characters on. I selected the anchor and dragged back between the start and end code and icon of the item has changed and he returned 'alive', I was able to handle it. For most other troublesome elements, however, sinpy AND marking a marker of the anchor, the XML tag does NOT display in story mode. The element gets the empty icon when you simply tag the anchor marker, in this case it is an anchor for a rule.

    Hope this might help someone, someday.

    Thanks again for reading.

  • Reading XML tags

    Hello

    I have the XML below

    < RESULTS >
    < ROW >
    < COLUMN NAME = "ID" > 12688f8ac8aa6310VgnVCM10000078ccc70a___ < / COLUMN >
    < COLUMN NAME = "BRANCH_NAME" > Brooklyn < / COLUMN >
    < / ROW >
    < / RESULTS >


    Could someone help me please with a way to read only that XML tags. We do not ask the data as such.

    A query on this XML file should return

    RESULTS
    LINE
    COLUMN NAME and so on...

    Kind regards
    Houta

    Forum has many examples
    as Re: multiple xml tag values get out.

    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
    Connected as apps
    
    SQL>
    SQL> with t as
      2   (select xmltype('
      3  
      4  12688f8ac8aa6310VgnVCM10000078ccc70a____
      5  Brooklyn
      6  
      7  ') xml
      8      from dual)
      9  select x.*
     10    from t,
     11         xmltable('for $i in $d/descendant::*
     12             return element r {
     13               element tag_name    {local-name($i)}, element tag_name2 {name($i)}
     14            }' passing t.xml as "d" columns tag_name
     15                  varchar2(30) path 'tag_name',
     16                  tag_name2 varchar2(30) path 'tag_name2') x
     17  /
    
    TAG_NAME                       TAG_NAME2
    ------------------------------ ------------------------------
    RESULTS                        RESULTS
    ROW                            ROW
    COLUMN                         COLUMN
    COLUMN                         COLUMN
    
    SQL> 
    
  • Remove and replace XML tags

    How can I delete a XML tag and replace using script? There is a function for adding tags in the document (activeDocument.xmlTags.add("xml-tag")), but I cannot find a corresponding function to delete it and replace it with another, as you would in the GUI.

    I tried to accomplish this by changing the name of the tag to one I tried using the code below, but it throws the error: "a label with the same name already exists.  Please choose another name. »

    for(var i=0;i<xmlTags.length;i++){
         xmlTags[i].markupTag.name = "existing-xml-tag";
    }
    

    Anyone know of a way around this error or should I use another method entirely?

    OK, it was not so difficult to solve. I was looking in the wrong place that's all. Function remove (replaceWith) is available in the XMLTag class. That means that the followin code removes the tag called "p-news-topic" and replaces it with the existing tag called 'p '.

    myDoc.xmlTags.itemByName("p-new-section").remove("p");
    
  • How can I find and replace the xml tags?

    Hi, I am using xml in my workflow and want to be able to remove some tags if they contained particular text.

    Here is an example of the xml struct...

    < Entry >

    < name > DEFAULT < / name >

    < such > default < / such >

    DEFAULT < address > < / address >

    < / Entry >

    I use this initial structure to define paragraph styles to follow when you import the xml data.

    This leaves DEFAULT in place everywhere where an entry is not any content of this field.

    I want to be able to import my XML and then run a script that deletes tags that include by DEFAULT, - I need to the xml tag to remove not only the text, if I do a normal find and replace will remove only the text not the tags that is causing problems with style. I also want to remove the end of para/return (^ p) that I placed at the end of the line. So it would be the same opening editor mode and removing content, tags + hard back in there, but I want to automate the process...

    So I think that's what I'm looking for in each case

    "< name > DEFAULT < / name > ^ p.

    and I want to replace it with nothing.

    Is this possible in a script (ideally javascript)?

    I have a little knowledge of javascript, but don't know how to search for and target this kind of string in indesign...

    using indesign cs5

    Thank you very much

    Hello

    Script should do it in two steps:

    1 find all occurrences of that is ' > by DEFAULT.<>

    2 delete the whole paragraph which is a found_text container.

    For example, in this way - JS - (a textFrame filled your text must be selected):

    var mStory = app.selection[0].parentStory;
    app.findTextPreferences =  null;
    app.findTextPreferences.findWhat = ">DEFAULT<";
    var myF = mStory.findText();
    var count = myF.length;
    while (count--)
         myF[count].paragraphs[0].remove();
    

    Rgds

  • Null XML tags

    Hello

    I just want to know how the xml tags are created if it is null then suffix tag xml as shown below:

    {
    example code:
    < GST_NUMBER xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: Nil = "true" / >
    }

    I can create using sql xml tags, if set to null, then it will be produced like this < GST_NUMBER / >, is there a way to sql I can produce xml tag suffixing this kind of info (as shown in the example), if it is a null value.


    Concerning
    Mr. Nagendra

    is it possible in sql I can produce xml tag suffixing this kind of info (as shown in the example), if it is a null value.

    You can build the attribute conditionally by testing the NULLness of the column:

    WITH t AS (
      SELECT NULL as gst_number
      FROM dual
    )
    SELECT xmlelement("root",
             xmlelement("GST_NUMBER",
               xmlattributes(
                 nvl2(gst_number,null,'http://www.w3.org/2001/XMLSchema-instance') as "xmlns:xsi"
               , nvl2(gst_number,null,'true') as "xsi:nil"
               )
             , gst_number
             )
           )
    FROM t
    ;
    

    For clarity and simplicity, it is best to declare the namespace xsi in the root element, so that you don't have to repeat the statement anywhere in the document:

    SQL> WITH t AS (
      2    SELECT NULL as gst_number
      3    FROM dual
      4  )
      5  SELECT xmlserialize(document
      6           xmlelement("root"
      7           , xmlattributes('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi")
      8           , xmlelement("GST_NUMBER"
      9             , xmlattributes(case when gst_number is null then 'true' end as "xsi:nil")
     10             , gst_number
     11             )
     12           )
     13           as clob indent
     14         )
     15  FROM t
     16  ;
    
    XMLSERIALIZE(DOCUMENTXMLELEMEN
    --------------------------------------------------------------------------------
    
      
    
     
    

    Edit:
    For the record, DBMS_XMLGEN can also handle this well, but it is less flexible than the SQL/XML functions:

    SQL> DECLARE
      2
      3   ctx dbms_xmlgen.ctxHandle;
      4
      5  BEGIN
      6
      7   ctx := dbms_xmlgen.newContext('SELECT NULL as gst_number FROM dual');
      8   dbms_xmlgen.setNullHandling(ctx, dbms_xmlgen.NULL_ATTR);
      9   dbms_output.put_line(dbms_xmlgen.getXML(ctx));
     10   dbms_xmlgen.closeContext(ctx);
     11
     12  END;
     13  /
    
    
    
     
      
     
    
    
    PL/SQL procedure successfully completed
     
    

    Edited by: odie_63 APR 12. 2011 20:40

  • Cursor when you move the text with a tag of behavior: how to change?

    Hi people, I created a tag of behavior to open a new browser window when you click on a text link. I also created a css style and adds a property flight hover/hand I've read in this forum, but hovering over the text does not cause the mouse cursor change.

    This is the http://arrowmark.co.nz/clients.html page and the text in red is the question.

    By clicking on "our locations" opens the window of the browser. I applied to the class "linkless_link" to this text which, in turn, has the "stationary" attribute applied to it, but as you can see the cursor does not change by positioning the mouse on it.

    Is anyone able to help me code it correctly?

    As well as this question, each time I have create a new page template or edit a page on the site I have to re - attach the css file, so the style sheet than the menu bar css. I would be grateful if someone could tell me what I did wrong to cause this, as all the other models I use keeps its css files associated with them at all times.

    Thanks in advance for the advice,

    JO

    Your style rule looks like this:

    .linkless_link p: hover {}

    Cursor: hand;

    }

    There are at least two errors in there. The correct value for the slider is 'pointer' ('hand' is the old, incorrect version used by older versions of Internet Explorer). Also, there should be no space before the: hover pseudo-class. Another possible error is the use of a descendant selector. I can't find the class of linkless_link applied to any element on your page, but p .linkless_link looks for a child of a paragraph element, so that it would work if you apply to your or the element, but not to the paragraph. In fact, because you're using a class, you need not p initially.

    Change the rule for this:

    {.linkless_link:hover}

    cursor: pointer;

    }

    And apply the class to the text that you want to assign.

  • Need help to retrieve the value of an xml tag.

    Hi all

    Hello all, I have problem to extract a value from an xml tag. I created an xml schema based on the schema, I created an xmltype table and inserted a value to the table. When I try to extract a value of a particular tag I can't do... Kindly help me to solve this problem. Here by I write all working, I did...

    I use the following client:
    -----------------------------------

    SQL * more: Release 10.2.0.1.0 - Production on Mon 31 Jan 11:44: 59 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options


    ////////////////////////////////// XML Schema ///////////////////////

    Start
    () dbms_xmlschema.registerSchema
    "http://www.oradev.com/chipsxml.xsd,"
    ' < scheme xmlns = "http://www.w3.org/2001/XMLSchema".
    targetNamespace = "http://www.oradev.com/chipsxml.xsd."
    xmlns:SAMP = "http://www.oradev.com/chipsxml.xsd".
    version = "1.0" >

    < feature name = 'Field1' >
    < complexType >
    <>sequence
    < element name = "UTI" >
    < complexType >
    <>sequence
    < element name = "U01" type = "string" / >
    < element name = "U02" type = "string" / >
    < element name = "U03" type = "string" / >
    < element name = "U03a" type = "string" / >
    < element name = "U03b" type = "string" / >
    < element name = "U03c" type = "string" / >
    < element name = "U04" type = "string" / >
    < element name = "U05" type = "string" / >
    < / sequence >
    < / complexType >
    < / item >
    < / sequence >
    < / complexType >
    < / item >
    < / schema > ',
    (TRUE, TRUE, FALSE, FALSE);
    end;


    A table that has several column.

    CREATE TABLE chipsxmltable1)
    Identification number, XMLDATA XmlType)
    XMLTYPE XMLDATA STORE AS OBJECT / RELATIONAL
    XMLSCHEMA 'http://www.oradev.com/chipsxml.xsd '.
    ELEMENT 'field1 ';


    Insert the query in chipsxmltable.

    INSERT INTO (VALUES) chipsxmltable
    XmlType.CreateXml ("<?") XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    Y < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    ((< / samp: field1 > '));


    To display the data in a field with the structure:
    --------------------------------------------

    1. motion:
    ----------
    Select * from chipsxmltable1;

    Output:
    -------


    ID XMLDATA
    ---------- -----------------------------------------------------------------
    1 <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    2 query: (both the query shows the same result)
    ----------

    SELECT X.xmldata.getClobVal ('XMLDATA' FROM chipsxmltable1 X);

    Select extract (XMLDATA, "/ Field1'") .getstringval ("XMLDATA" chipsxmltable1 x);


    Output:
    --------

    XMLDATA
    -----------------------------------------------------------------
    <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    To display the data as a single string without structure using "getstringval()":
    ---------------------------------------------------------------------------------

    3 query
    ---------

    Select extract (XMLDATA, "//text()').getstringval()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    -------

    CHIPS - XML
    ---------------------
    NoNoYYYYYY


    To display the data as a single string without structure using "getclobval()":
    ---------------------------------------------------------------------------------

    4 query
    -------

    Select extract (XMLDATA, "//text()').getClobVal()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    --------

    CHIPS - XML
    -----------------
    NoNoYYYYYY


    To display the data in a tag with or without structure (which does work) using the function "EXTRACT":
    -------------------------------------------------------------------------------------------------------------

    6.query:
    ---------

    Select extract (XMLDATA, "/Field1/text()').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01/text()').getstringval()"XMLDATA' chipsxmltable1 x;


    Output:
    --------

    CHIPS - XML
    ---------------------------------------



    The queries above are not fetch the value.



    To display the data in a tag with or without structure (which does work) using the function "EXTRACTVALUE":
    ------------------------------------------------------------------------------------------------------------------

    7 query:
    ----------

    Select extractValue (XMLDATA, ' / Field1/UTI ') 'XMLDATA' of chipsxmltable1 x;

    Select extractValue (XMLDATA, ' / U01/UTI/Field1 ') 'XMLDATA' of chipsxmltable1 x;


    Output:
    --------

    X
    -



    The queries above are not fetch the value.


    My question is:
    --------------------
    How to extract the values of xml tag when the value are inserted through xml schema?


    My apologies if the description is not clear. Kindly let me know if further details are required. Thanks a lot for your help.

    Very cordially,
    Godwin Castro C.V.

    Hello

    You must declare the namespace of each element used in the XPath expression, like this:

    SQL> select extractvalue( XMLDATA
      2                     , '/samp:Field1/UTI/U01'
      3                     , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
      4  from chipsxmltable1 x
      5  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    No
     
    
    SQL> select extract( XMLDATA
      2                , '/samp:Field1/UTI'
      3                , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
      4                ).getstringval() "XMLDATA"
      5  from chipsxmltable1 x
      6  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    
      No
      Y
      Y
      Y
      Y
      Y
      Y
      Y
    
     
    

    Please see EXTRACT and EXTRACTVALUE documentation:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions051.htm#i1006712
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions052.htm#SQLRF06173

    BTW, 'XMLDATA' is a pseudo-column used by Oracle. I don't know if it will never cause any conflict, but perhaps you need to rename your column.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256

    Kind regards.

Maybe you are looking for