|
From: Jimmy Z. <cra...@co...> - 2007-03-20 21:13:56
|
Exactly. Use XPath as a filter so that only the objects relevant to the
application logic are created ... this way the object creation cost can
be reduced significantly, making databind suitable for even very performance
demand apps....
----- Original Message -----
From: "Tatu Saloranta" <cow...@ya...>
To: <vtd...@li...>
Sent: Tuesday, March 20, 2007 11:25 AM
Subject: Re: [Vtd-xml-users] HowTo use Vtd for GML to Java Mapping?
> --- Fernando Gonzalez <fer...@gm...> wrote:
>
>> As long as I know about GML files... It only defines
>> data types to be used
>> on your application specific schema. If you have a
>> concrete
>> application-specific schema, congratulations. Use a
>> mapping tool like JAXB
>> or Castor or whatever. If you haven't, you can't map
>> because you don't have
>> a schema to map. In this point I agree with Jimmy
>
> Or equivalent object hierarchy... schema isn't
> strictly necessary, fortunatley.
> But object model has to exist and be (or made)
> compatible. JibX is another fine candidate.
>
>> that you should use XPath
>> to obtain the data of interest and I think VTD-XML
>> is very useful.
>
> I don't know anything about GML specifically, but
> point I tried to make is that the question was
> specifically (even if mistakenly) asking about
> xml/object mapping. Alternative to that may be using
> VTD-XML with xpath ("instead of object mapping, why
> not just directly exact data you need").
> Just want to keep terminology accurate -- otherwise
> users expectations may not be met (if they really have
> object model as was implied).
>
> -+ Tatu +-
>
>
>
>
> ____________________________________________________________________________________
> Bored stiff? Loosen up...
> Download and play hundreds of games for free on Yahoo! Games.
> http://games.yahoo.com/games/front
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Vtd-xml-users mailing list
> Vtd...@li...
> https://lists.sourceforge.net/lists/listinfo/vtd-xml-users
>
|