Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Equivalent of Entity

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the equivalent of Entity in Schema. How do I automatically substitue a string of repetitive text in xml document,Like the way its possible using DTD with Entity.
[ July 01, 2002: Message edited by: venkat vyasam ]
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"However, schemas are not a be-all and end-all solution. In particular, schemas do not replace DTDs! You can use both schemas and DTDs in the same document. DTDs can do several things that schemas cannot do, most importantly declaring entities."
http://www.ibiblio.org/xml/books/bible2/chapters/ch24.html

Cheers,
Dan
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Dan said, Entitiy cannot be defined using Schema. You have to use DTD for this.
-Shoba
 
venkat vyasam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dan and Shoba Got it.
I am still bent on listing "several" other things that Schema cannot do that DTD does.Can anyone help me list few more.....
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venkat,
The citation from the book says - "...schemas do not replace DTDs! ....DTDs can do several things that schemas cannot do, most importantly declaring entities."
In my opinion, schemas don't have entities because schemas, XLinks and Xfragments provide better solutions for the same needs.
XLinks replace external unparsed entities.
Schema’s named complex types substitute parameter entities.
XLinks and XFragments replace external parsed entities.
Cheers,
Dan
 
ice is for people that are not already cool. Chill with this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic