[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Line number of a node

  • From: Beatriz San Miguel González <beuchisan@h...>
  • To: mike@s..., xml-dev@l...
  • Date: Wed, 20 Dec 2006 18:30:10 +0000

date line numbers
Thank you for your advices,I think that the best way will be to use the 
class NodeImpl of Saxon because I have seen the method getLineNumber(), do 
you know how can I create a NodeImpl with XPath? some example please.

Thank you again.


>From: "Michael Kay" <mike@s...>
>To: 'Beatriz San Miguel González' 
><beuchisan@h...>,<xml-dev@l...>
>Subject: RE:  Line number of a node
>Date: Wed, 20 Dec 2006 15:50:22 -0000
>
>The Saxon tree model allows you to store line numbers if you set an
>appropriate flag when building the tree. But this is a read-only model -
>it's suitable if most of your access is through XPath but you might not 
>want
>to use it otherwise.
>
>XOM allows you to define subclasses of the standard node classes so that
>extra information can be stored, this would allow you to capture the line
>numbers from SAX while building the tree. However, this involves writing
>your own node factory class.
>
>Michael Kay
>http://www.saxonica.com/
>
> > -----Original Message-----
> > From: Beatriz San Miguel González [mailto:beuchisan@h...]
> > Sent: 20 December 2006 15:38
> > To: mike@s...; xml-dev@l...
> > Subject: RE:  Line number of a node
> >
> > I don't know what API can be useful. I have used SAX, dom and
> > dom4j but it's don't work. I have read about XOM and I think
> > that it's not possible.
> > I need some suggestion about what API I can use. The only
> > requirement is to use Java.
> >
> > Thanks!
> >
> >
> > >From: "Michael Kay" <mike@s...>
> > >To: 'Beatriz San Miguel González'
> > ><beuchisan@h...>,<xml-dev@l...>
> > >Subject: RE:  Line number of a node
> > >Date: Wed, 20 Dec 2006 15:25:57 -0000
> > >
> > > >
> > > > Is  there is a way to find out the line number of a node?
> > > >
> > >
> > >It rather depends on what API you are using. In the DOM API,
> > I believe
> > >the answer is no.
> > >
> > >Michael Kay
> > >http://www.saxonica.com/
> > >
> > >
> > >_____________________________________________________________
> > __________
> > >
> > >XML-DEV is a publicly archived, unmoderated list hosted by OASIS to
> > >support XML implementation and development. To minimize spam in the
> > >archives, you must subscribe before posting.
> > >
> > >[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> > >Or unsubscribe: xml-dev-unsubscribe@l...
> > >subscribe: xml-dev-subscribe@l... List archive:
> > >http://lists.xml.org/archives/xml-dev/
> > >List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
> > >
> >
> > _________________________________________________________________
> > Grandes éxitos, superhéroes, imitaciones, cine y TV...
> > http://es.msn.kiwee.com/ Lo mejor para tu móvil.
> >
>

_________________________________________________________________
Acepta el reto MSN Premium: Correos más divertidos con fotos y textos 
increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.