--- In [email protected], "Kenneth Sutherland" 
<[EMAIL PROTECTED]> wrote:
>
> Hi I'm looking for info on best practices for creating XML and using
> hyphens inside the XML.
> 
>  
> 
> The reason being that a feed that I'm having to work through 
contains
> the node <language-block ln="en"> which makes it awkward to get at 
due
> to the '-'.
> 
>  
> 
> I can only find one doc which isn't enough weight to get the XML 
changed
> to be something like <languageBlock ln="en"> when they've been using
> <language-block ln="en"> for years, even though I'm sure it's a 5 
min
> job to change it.  
> 
>  
> 
> if you're interested I'm having to do something like
> xml["language-block"].(@ln == _language) rather than the standard 
way of
> just doing xml.language-block.(@ln == _language).

I'm thinkng you could just use

yourXML.child('language-block').(attribute==_language)

which is the recommended syntax anyway.

HTH;

Amy

Reply via email to