XMLSearch / case in-sensitive search in a text node value with XPATH

Hi everyone,
I was aggregating some XML files and queries for a search
engine. It is pretty easy with coldfusion XML functions BUT ....
I was looking around XMLSearch to do a simple text search
into nodes and I am stuck with it.
with something like that :
selectedElements = XmlSearch(myxmldoc,
'(/directory/user[contains(.,"#form.firstName#")])');
Without loop all the XML elements, I cannot put firstName
text nodes to lower-case, do a simple search into the directory and
get user entries.
Is it possible to do with XPATH something like that :
selectedElements = XmlSearch(myxmldoc,
'(/directory/user[contains(lower-case(.),lower-case("#form.firstName#"))])');
Thanks for your help.

When Do you think coldfusion will implement Xpath functions
as
http://www.w3schools.com/xpath/xpath_functions.asp
????

Similar Messages

  • ATG search 2007 and case in-sensitive search sorting

    Any one please tell me , how can we do the case in-sensitive sorting in ATG search 2007 ?
    please find below my current sort properties to search engine for the alphabetical sorting of the products/skus :
    docSortProp="displayName" docSortOrder="ascending" sorting="document" setSort="none" docSetSort="fulltree" sortProp="" docSortPred="numprop:descending:childSKUs.skuFeature:1|numprop:ascending:minPrice|strprop:descending:null:z|strprop:ascending:displayName:z" docSort="strprop"

    Hi Sony,
    There is no way in 2007.x. It was added in 9.x. See http://docs.oracle.com/cd/E26180_01/Search.94/ATGSearchQueryRef/html/s0513docsort02.html .
    Thanks.
    Nick Glover
    Oracle Support for ATG Products

  • How to compare text box value with the table data??

    Hello ALL,
    I created one stored procedure in DB,it is as follows:-
    CREATE or replace PROCEDURE chkUser
    u in varchar2,
    p in varchar2,
    ap out varchar2
    is
    begin
    select count(*) into ap from tbuser where loginid = u and password = p;
    end;
    And at the front end I have designed a form with 2 text boxes, now my question is I wanna compare these text box values(which user enters) with the data of the table....??? something like control (may be I am not sure)..... ???
    If anybody can help me out with this issue...... help will be appreciated
    Thank you.
    regards,
    Kumar

    hi Elise,
    I'm always getting the Error Message as "Invalid Creditianls"... let me tell you the whole scenario with sql synatx.
    I have created tables as:-
    CREATE TABLE "TBUSER"
    (     "LOGINID" VARCHAR2(30) NOT NULL ENABLE,
         "PASSWORD" VARCHAR2(30),
         CONSTRAINT "TBUSER_PK" PRIMARY KEY ("LOGINID") ENABLE
    than I created the Procedure on tbuser, it is as:-
    create or replace PROCEDURE logincheck
    u in varchar2,
    p in varchar2,
    ap out varchar2
    is
    begin
    select count(*) into ap from tbuser where loginid = u and password = p;
    end;
    now at the front end side I have created one form with 2 text boxes (P8_USERNAME & P8_PASSWORD) and 2 buttons (Cancel and Submit)
    as per you told me in the above post, I have created 'Validation' procedure with Type as 'Exists' and expression(into Validation Expression1)as:-
    select 1 from tbuser
    where loginid = :P8_USERNAME
    and password = :P8_PASSWORD;
    and
    kept an error message as 'Invalid credentials'.....
    but I don't know what's going wrong..... I do have few data into the table, and when I am entering the same data(with case sensitive) I am getting the Error message, rather than when the credentials are perfect user should be allowed to enter into the current page(where I have created this form and validation procedure)....
    any idea what's going worng and where...????
    thxs.... appreciated..
    regards,
    Kumar

  • Child text node lost with newDomNode()

    Hello,
    I have a simple custom XMLBean compiled from a schema like:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://mydomain.com/xsd/myBean"
         xmlns="http://www.w3.org/2001/XMLSchema"
         xmlns:tns="http://mydomain.com/xsd/myBean"
         elementFormDefault="qualified">
         <simpleType name="MyType">
              <restriction base="double"/>
         </simpleType>
         <element name="MyElement" type="tns:MyType"/>
    </schema>
    An the Java code:
    import com.mydomain.xsd.myBean.*;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    void myMethod() {
    MyElementDocument bean = MyElementDocument.Factory.newInstance();
    bean.setMyElement(3.14d);
    // this prints the the xml with text including 3.14d
    System.out.println(bean.xmlText());
    Element dom = ((Document) bean.newDomNode()) .getDocumentElement();
    The problem is, after getting the DOM object my calling newDomNode(), the Text
    Node for "3.14d" is lost from the DOM tree; i.e. instead of
    <tns:MyElement xmlns:tns="http://mydomain.com/xsd/myBean">3.14d</tns:MyElement>
    I get XML like:
    <tns:MyElement xmlns:tns="http://mydomain.com/xsd/myBean" />
    Question: how come the DOM tree is not complete?
    Any help is very much appreciated.
    -Feng

    I fixed the error by upgrading xbean.jar to the one bundled with WebLogic Servcer
    8.1 SP2 (I originally had the version from WLS 8.1 SP1).
    -Feng
    "Feng Xue" <[email protected]> wrote:
    >
    Hello,
    I have a simple custom XMLBean compiled from a schema like:
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://mydomain.com/xsd/myBean"
         xmlns="http://www.w3.org/2001/XMLSchema"
         xmlns:tns="http://mydomain.com/xsd/myBean"
         elementFormDefault="qualified">
         <simpleType name="MyType">
              <restriction base="double"/>
         </simpleType>
         <element name="MyElement" type="tns:MyType"/>
    </schema>
    An the Java code:
    import com.mydomain.xsd.myBean.*;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    void myMethod() {
    MyElementDocument bean = MyElementDocument.Factory.newInstance();
    bean.setMyElement(3.14d);
    // this prints the the xml with text including 3.14d
    System.out.println(bean.xmlText());
    Element dom = ((Document) bean.newDomNode()) .getDocumentElement();
    The problem is, after getting the DOM object my calling newDomNode(),
    the Text
    Node for "3.14d" is lost from the DOM tree; i.e. instead of
    <tns:MyElement xmlns:tns="http://mydomain.com/xsd/myBean">3.14d</tns:MyElement>
    I get XML like:
    <tns:MyElement xmlns:tns="http://mydomain.com/xsd/myBean" />
    Question: how come the DOM tree is not complete?
    Any help is very much appreciated.
    -Feng

  • BPC 7.5 NW Master Data Text Node Load with Hierarchy Intervals - Duplicate

    Hi,
    Does anyone have ideas on how to get past this error (besides a BADI)?
    I am loading master data text nodes from a BW hierarchy (say 0COSTCENTER) that has intervals defined for cost center nodes.  The problem is that the text nodes fail since there are duplicate values in the hierarchy table.
    Master data (dealt by table level) has errors
    Detected duplicate member ID 'F100'
    Detected duplicate member ID 'F100'
    Detected duplicate member ID '1000'
    Detected duplicate member ID '1000'
    etc...
    Thanks!

    Hi Virginie,
    You should be able to see an example in many threads; look for an example to Restriction of bw infoobect(not mapped to dim)
    You can also make a restriction under the InfoObject name when you run the DM package.
    Hope this helps,
    Gersh

  • Case in-sensitive search or query

    Hi,
    I have made a form based on a table. It has one coulmn that has mix-case field(like filed is Title, and values of this field is 'Oracle Application Server 9i'.)
    If i type 'Oracle Application Server 9i'in the field and click query button (or search button) it displays records matching that field. If some one enters 'oracle application server 9i' then it does'nt return any row. I want to get the same result as in first search or query. How can i get this functionality.
    Thanks
    Muhammad E.

    This has been requested as an enhancement. Presently there is no option like any check box that does this.
    I remember, there has been some answer posted for a similar query. Pls search this forum for that.
    Thanx,
    Chetan.

  • Case in-sensitive search

    Is it possible to configure the database to perform all searches
    as case in-sensitve.
    Ex.
    select * from MyTable where MyField = 'Question';
    should also return rows from MyTable where Myfield contains
    'question', 'QUESTION' etc.
    null

    I am not sure about configuring the database, but you can avoid
    case problems by coverting everything to upper/lower case:
    select * from MyTable where UPPER(MyField) = UPPER('Question');
    or...
    select * from MyTable where UPPER(MyField) = 'QUESTION';
    Brian
    Jesper Bech Petersen (guest) wrote:
    : Is it possible to configure the database to perform all
    searches
    : as case in-sensitve.
    : Ex.
    : select * from MyTable where MyField = 'Question';
    : should also return rows from MyTable where Myfield contains
    : 'question', 'QUESTION' etc.
    null

  • How to search for a text node with a particular value in an xml document with labview

    supposing i have the following xml document:
    <head>
    <book>
    <bookname>zio</bookname>
    <author>dan</author>
    </book>
    <book>
    <bookname>the spear warrior</bookname>
    <author>britney</author>
    </book>
    <book>
    <bookname>the beard</bookname>
    <author>derrick</author>
    </book>
    </head>
    i want to search for the author of the book "the beard" using for example the V.I Get first match  of labview to access the the node with value "the beard" and then use Get next sibling  V.I  and Get node text content to get get the author of this book..so my question is how do i write the xpath expression for Get first match so as to access the node with bookname "the beard" instantyly?  am trying to minimise the use of loops because they increase the time duration,..thank you (NB:i dont want to use Get all Matched V.I because it obliges me to use a loop in order to access the name derrick and this increases the time duration for my v.i)
    Solved!
    Go to Solution.

    Since it's all text, why not use a real quick Match Pattern (or Regular Expression, but you don't need that much power here), see attached.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ
    Attachments:
    Two-stage match demo.vi ‏8 KB

  • Account dimension hierarchy text nodes ACCTYPE property

    Hello,
    We have master data being populated into BPC from BW. So for the Account dimension in BPC, we use the 0GL_ACCOUNT infoobject in BW. This infoobject also has all the Financial statement version hierarchies which are being loaded to BPC. The question that I have is, how should the hierarchy text node values for ACCTYPE property be populated if I have to automate this load on a daily basis.
    For the actual GL accounts, we have the account number ranges defined. Like 1* series accounts are Assets etc..So we can easily define a rule for populating the ACCTYPE  property values. But not sure if there is any easy logic for populating the hierarchy text nodes as we dont have any pattern in them. Would we need to maintain it manually always?
    Thanks
    Gaurav

    Hello Richard,
    If there is really no logic behind them there is off course no way of automating this. Then I guess you will have to maintain each node separately.
    Some customers are also willing to change their text node structure. For example I had one when where the rules for the 0HIER_NODE records were as follows:
    *           EXP -> Starts with 32*, 311*, 312*, 321*, 3111*, 3112*,
    *                  3142*,  31111*,  31112*,  311111*
    *           INC -> Starts with TOT, 3000000000, 3100000000, 313*,
    *                  322*, 3113*, 3141*, 31113*, 311112*
    *           AST -> Starts with 1*
    *           LEQ -> Starts with 2*
    Kind regards,
    Christophe

  • XML parser fails to convert html encoded text nodes

    Under the strain of large documents this defect rears its ugly head more often. While parsing a text node containing html encoded chars i.e. < > &; etc...
    The parser will seemingly forget to change the chars at random, 99.9% of the time everything is ok and the proper conversions take place:
    < -> &#60;
    > -> >
    &; -> &#38;
    Once an error occurs it is reproducible until the text node is changed ( values and/or order ) then it is a crapshoot again.
    These tests were done using the default UTF-8 encoding, here is the exception thrown by the parser along with a portion of the text node before and after the first parsing.
    Let me be clear, the parser actually succeeds the first time but the transformation of the HTML encoded pieces possibly fails. It is on the parsing of the text node value as its own document that the parser fails.
    Error 0 : Error parsing XML string! Line :: 1, Column :: 65674
    Error 1 : End tag does not match start tag 'Project'.
    End tag does not match start tag 'Project'.
    at oracle/xml/parser/v2/XMLError.flushErrors (XMLError.java:233)
    at oracle/xml/parser/v2/NonValidatingParser.parseDocument (NonValidatingParser.java:248)
    at oracle/xml/parser/v2/XMLParser.parse (XMLParser.java:117)
    at pacificedge/xml/XMLUtilities.loadParserFromString (XMLUtilities.java:104)
    Preprocessing ::
    <Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213">
    <StuffA>100213</StuffA>
    <Name>I am a Name</Name>
    <StartDate>1998-08-10</StartDate>
    <FinishDate>2000-06-30</FinishDate>
    <Path>Folder1\Folder2</Path>
    </Project>
    Post processing:
    <Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213">
    <StuffA>100213</StuffA>
    <Name>I am a Name</Name>
    <StartDate>1998-08-10</StartDate> <-- Error is raised here when the value of the text node is used as an xml document
    <FinishDate>2000-06-30</FinishDate>
    <Path>Folder1\Folder2</Path>
    </Project>
    Please investigate this. It is a chronic problem for us and possibly many others.
    null

    Sorry for the encoding issues in the message before here are the pertinent pieces hope this shows up correctly.
    &;lt; -> &;#60;
    &;gt; -> >
    &;amp; -> &;#38;
    Preprocessing ::
    &;lt;Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213"&;gt;
    &;lt;StuffA&;gt;100213&;lt;/StuffA&;gt;
    &;lt;Name&;gt;I am a Name&;lt;/Name&;gt;
    &;lt;StartDate&;gt;1998-08-10&;lt;/StartDate&;gt;
    &;lt;FinishDate&;gt;2000-06-30&;lt;/FinishDate&;gt;
    &;lt;Path&;gt;Folder1\Folder2&;lt;/Path&;gt;
    &;lt;/Project&;gt;
    Post processing:
    <Project stuff0="0" stuff1="0" stuff2="0" stuff3="1" stuff4="100167" stuff5="100213">
    <StuffA>100213</StuffA>
    <Name>I am a Name</Name>
    &;lt;StartDate>1998-08-10</StartDate> <-- Error is raised here when the value of the text node is used as an xml document
    <FinishDate>2000-06-30</FinishDate>
    <Path>Folder1\Folder2</Path>
    </Project>
    null

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • Manipulating Text Nodes

    Hi,
    I have only recently begun working with XML and the DOM. I have
    begun writng a small app to upload XML data to a database using
    the version 2 parser. I am having trouble getting at the content
    of text nodes ( for example the "Stan" in <name>Stan</name> ). I
    have tried using the getNodeValue() function,and casting to a
    XMLText and the getData() function. I know I am at the correct
    node because I have used to the getNodeName() function to
    generate a list of nodes as I work my way through the document
    from the root. What am I missing?
    Thank you for your help,
    Stan Grabinski
    null

    Stan Grabinski (guest) wrote:
    : Hi,
    : I have only recently begun working with XML and the DOM. I
    have
    : begun writng a small app to upload XML data to a database
    using
    : the version 2 parser. I am having trouble getting at the
    content
    : of text nodes ( for example the "Stan" in
    <name>Stan</name> ). I
    : have tried using the getNodeValue() function,and casting to a
    : XMLText and the getData() function. I know I am at the
    correct
    : node because I have used to the getNodeName() function to
    : generate a list of nodes as I work my way through the document
    : from the root. What am I missing?
    : Thank you for your help,
    : Stan Grabinski
    You need to use the getNodeValue() method against the text node
    associated with the element node of interest not the element
    node itself. If this doesn't help, please post a code sample and
    the XML file.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Smartforms text node in release 710

    Prior to today, I have worked with SmartForms in ECC 5.0 but now I am in ECC 6.0.  I see a major difference in SmartForms when it comes to text nodes.  What is this all about?  I can no longer drag fiields to the text node.  Now the text node opens with an, embeded, instance of MS Word.  Is this normal?  Have SmartStyles gone away?  I am royally confused.
    Regards,
    Aaron

    The only pencil icon I see says "Editor" when you hover over it and it is above the 'Check' icon.  I used the 'Insert Field' icon, adding the '&'s, and it still doesn't display the result of that field.  Any ideas?
    I now managed to get the value to come through.  I had to click the "editor" button and add the field in that editor.  It didn't work if I added the field in the first editor (the node layout).
    My problem with the character format still stands.  Also, can you not drag and drop the fields anymore?  Is there a way to go back to the old editor?  This new editor takes entirely too long to load each time you go to a new text node.
    Aaron
    Edited by: Aaron Shover on May 7, 2008 11:12 AM

  • Case-Sensitive Search

    Hi all,
    I'm having a stupid problem. We use Robohelp 7.0 for Word.
    When people search using the search tab (compiled version), they
    seem to only find words according to the case (i.e., search for
    Quickbooks and Quickbooks shows up, but QUICKBOOKS doesn't return
    anything). Is there a way to turn off case-sensitivity?
    Any help would be greatly appreciated.
    Thanks,
    Jeff

    Search on a MIXED_CASE index is case-sensitive. Either re-index and build a case-insensitive index or consider using the ABOUT query operator.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tosh Miller:
    Have a table with FILE_DATASTORE field and primary key of course.
    Index is case-sensitives (MIXED_CASE = YES).
    How create insensitive query to this table?<HR></BLOCKQUOTE>
    null

  • Preview 5.0 - Case sensitive search

    Is it possible to do case sensitive search in Preview 5.0?
    I am searching a PDF file for a combination of capital letters but I get hundreds of results of the same letters inside words. Is there any "advanced find" in Preview?
    thanks!

    bump

Maybe you are looking for

  • I deleted something and now Mail wants me to set up a new account

    hello I don't remember exactly what happened but I was on a site that somehow opened my mail . I must have clicked on something . I noted the time it happened and went to finder and deleted everything that was created or modified at that time --days

  • JSTL forEach inside html form

    I am using JSTL to display data in an editable menu. The data is retrieved from a database and the user may change it if required. The problem is that I get a blank page inside the forEach tag. %@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix=

  • Mount USB Ext drive that is connected to Airport Ext base sta via usb hub

    My Lacie drive disappeared from the desktop after downloading a recent Mac software update. It is connected to my compter wirelessly via a usb hub connected to AirportExtreme Base Station. The only way to get it back on the desk top is to connect it

  • Kodo JCA integration with Oracle AS 10g

    Hi guys, even though I know that Oracle Application Server is not officially supported by SolarMetric, it is fundamental for us being able to preferalby integrate Kodo as a JCA connector. In the last three days I've been working on this issue obtaini

  • Event Handling issue

    Hai All,           I'm manipulating the production order form, Created one folder and placed some checkboxes and edit boxes in that. My issue is, i've handled the click event of check box by et_ITEM_PRESSED and the lost focus of the editbox by et_LOS