• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Xquery basic -xmlspace

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
i am trying to learn query and got a basic question
I was trying out conputed constructor to create document and elements and want to make resulting document to preseve whitespace.
I read to add "declare xmlspace preserve;" in query prolog. so i did the following

declare xmlspace preserve;

document {


element book {
attribute year {1234},
element author {
element last {"Grir"},
element first {"Bin"}
},
element price {123}
}
}

Still result doc does't have space.. am I doing anything wrong? didn't see any sample which shows usage so I am bit confused

Can somebody help me
Thanks,
Sharika
 
reply
    Bookmark Topic Watch Topic
  • New Topic