Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max characters between <tags>?

Status
Not open for further replies.

taffLawley

Technical User
Sep 29, 2004
2
DE
Hi there,
im a noob to XML, and have started a search engine for our small flash site. My XML has this format atm:
<AllSWF>
<Site name="Biophysics" place="bio.swf">
<keyWords>
<desc>skin</desc>
<desc>hair</desc>
<desc>care</desc>
</keyWords>
<compText>Get an awful lot of content in here</compText>
</Site>
<Site name="Toxicology" place="toxic.swf">
<keyWords>
<desc>more</desc>
<desc>of</desc>
<desc>same</desc>
</keyWords>
<compText>Get an awful lot of content in here</compText>
</Site>
</AllSWF>

The way my search currently works is that it searches the keywords for the users string, if it finds it, it then looks in the <compText> tag for the context the word was found in, and kicks it back to the user in the sentence it was in. It also tell the user where it was found (name) and offers a link (where).

My CompText however sometimes becomes quite long, anything up to about 400 chars long. My editor seems to chop of the beginning of the content sometimes for no reason.
Is their a limit to the maximum number of chars I can have in compText, or should I download a different editor, Im using MM Dreamweaver atm.

I would appreciate any assistance anyone can give.
Many thanks.
Taff
 
It's a problem with your editor. Max length per the W3C spec is 2gb, but it might actually be a little less in practice.

XMLSpy is very very good (but expensive for an individual to purchase at ~$400 USD).

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks a lot for your help Chip. I downloaded a freeware XML editor. I dont use XML very often, and only for small things so I dont think my boss would be too happy if I went out and spent another $400 on software :/

As you said it works fine with other software.
dreamweaver="Bad for long XML tags"

Taff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top