|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Regular Expression searchElarrat, EFC eduardoelarrat at gmail.comMon Dec 12 10:19:18 PST 2005
I appreciate your answers. Thank you. On 12/12/05, Elarrat, EFC <http://xquery.com/mailman/listinfo/talk> wrote: > > The error is just a detail, I built this structure just to show you how to > do what I really wanted, but thanks anyway, your code worked well. > > On 12/12/05, Henry Luo <http://xquery.com/mailman/listinfo/talk> wrote: > > > > The XPath or XQuery expression to fulfill your requirement: > > //*[starts-with(local-name(), "subTag") and starts-with(text(), > > "MyNameIs"] > > > > And your XML seems to contain one mistake, > > it should be <subTagB>MyNameIsElarrat</subTagB> instead of > > <subTagB>MyNameIsElarrat</subTagA> > > > > Henry > > > > Elarrat, EFC wrote: > > > > > Hi everyone, > > > lately I've been trying to build a xquery search that contains regular > > > expressions to get my result, but I couldnt make it. So I would like > > > to know how to search within a xml structure for some generic tags. > > > For example: > > > > > > This xml: > > > > > > <tagA> > > > <subTagA>MyNameIsEduardo</subTagA> > > > </tagA> > > > <tagB> > > > <subTagB>MyNameIsElarrat</subTagA> > > > </tagB> > > > > > > How do I search for subTags that begins with "MyNameIs" and ends with > > > anything else so I can have both subTags on my result? Thanks in > > advance, > > > > > > > > > Eduardo Elarrat > > > > > > > >------------------------------------------------------------------------ > > > > > >_______________________________________________ > > >http://xquery.com/mailman/listinfo/talk > > > http://xquery.com/mailman/listinfo/talk > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://xquery.com/pipermail/talk/attachments/20051212/36689622/attachment.htm
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






