Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

XSLT Sample for Change Structure of XML File?

Thread view: 
Homer - 29 May 2006 20:52 GMT
Hi All,

I have following XML File:

<Header></Header>
<Category></Category>
<Item1></Item1>
<Item2></Item2>
<Category></Category>
<Item3></Item3>

Could someone please send me an example what is the XSLT text to
convert it to:

<Header>
    <Category>
        <Item1></Item1>
        <Item2></Item2>
    </Category>
    <Category>
        <Item3></Item3>
    </Category>
</Header>

Thanks is advance,

Homer
Alex Hunsley - 30 May 2006 00:46 GMT
> Hi All,
>
[quoted text clipped - 19 lines]
>     </Category>
> </Header>

Why not google for XSLT tutorials (there's plenty) - what you are trying
to do is not too hard. Then come back and ask if you have problems (and
show what you've done so far!)
John Gagon - 30 May 2006 04:37 GMT
>Why not ..."google" for ...

*sigh* another victim of branding. ;-)  </tic>

I'm wondering if "search" is not clear enough in the context.
TBP, No one is going to think it would mean getting out a flashlight
and bloodhounds or any other meaning that comes easily to mind.

But I suppose with a certain audience, it's might be less confusing.

John
--
Tired of Google®? Perhaps: http://www.dogpile.com ?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.