• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Inserting quote char into generated output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inserting quote char into generated output


  • Subject: Inserting quote char into generated output
  • From: Markus Ruggiero <email@hidden>
  • Date: Thu, 17 Feb 2011 16:12:49 +0100

Hi wo-gurus,

I have the following problem: I want to generate XML and need to put literal " and < char into the output. The wo parser however fails and I do not know how to effectively solve this. Let me give an example:

Desired output:

<value name="ABCD">....</value>

ABCD comes from the database. However

<value name="<webobject name="myName">">....</value>
with binding
myName : WOString { value=myEO.name;}

does not work as the literal quotes confuse the parser. Tried to put &quot; there but the resulting XML file is not what I need.

Next try:
<value name=<webobject name="quote" />ABCD<webobject name="quote" />>....</value>
with binding
quote : WOString { value=""";}
also does not work (triple " chars). Replacing " by ' adds to the confusion of the parser at runtime.

So I would have to get the binding from the java code. Is this really the only way to do it? Makes the component html pretty unreadable.
I have a similar problem in cases where I want to generate the above value tag itself. There the parser is confused by the multiple < chars.

<<webobject name="valueTag" />>

Thank you all for your help
have a nice wo-day
---markus---

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Inserting quote char into generated output
      • From: Steve Peery <email@hidden>
  • Prev by Date: Re: WO server to connect to Apple's Push Notification Service for iOS
  • Next by Date: Re: Inserting quote char into generated output
  • Previous by thread: AjaxFlexibleFileUpload and ERAttachmentFlexibleUpload
  • Next by thread: Re: Inserting quote char into generated output
  • Index(es):
    • Date
    • Thread