Revision [892]

This is an old revision of SerializationOptions made by DavidLee on 2009-11-24 16:07:00.

 

Serialization and Parsing options


There are several global (shell scope) options that control serialization and parsing. These control default parameters used whenever plain text is parsed into XML , and when XML is serialized to text.

Most commands (where noted) can also accept these options which override the shell options for just that command.



Parsing Options


The following global parsing options may be set by the set command.




Serializing Options


The following global serialization options may be set by the set command. These may be overwritten by specific commands.

Options without arguments can be preceded by a + instead of a - to inverse the setting.


Examples


Indentation

Indentation is controlled with the -indent option. Default is indentation.

Example
xecho <[ <foo><bar/></foo> ]>

Results
<foo>
   <bar/>
</foo>

Result
xecho +indent <[ <foo><bar/></foo> ]>

Result
<foo><bar/></foo>


set +indent
xecho <[ <foo><bar/></foo> ]>

Result
<foo><bar/></foo>




Serialization
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki