View Single Post
  #3 (permalink)  
Old April 21st, 2013, 04:57 PM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Define 'XML rules'. XML is just a descriptive way of storing data - you can define your own 'schema' that means the XML can be interpreted as a series of rules for processing text, but how you do that is up to you - I'm not aware of any standard method.

You would then need something that understood your XML to process it, and the input to produce the output.

If you are using XSLT 2.0 then you can write XSLT to process text, usually using the unparsed-text() function to read the incoming text, but you either end up with a number of regular expression instructions, or loads of substring function calls etc.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?