mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Clearer documentation and missing delimiter in xml.cc.
This commit is contained in:
parent
d3fd9bda66
commit
38f6e7dcef
1 changed files with 4 additions and 3 deletions
7
xml.cc
7
xml.cc
|
|
@ -90,12 +90,13 @@
|
|||
/*
|
||||
This is a simple library for writing XML. It handles two main things:
|
||||
keeping track of the element stack, and escaping text where necessary.
|
||||
Here is an example of writing
|
||||
If you wanted to write this XML:
|
||||
<?xml version="1.0"?>
|
||||
<elem name="&10.5"></elem>
|
||||
Each function call is followed by the text it prints enclosed in ||.
|
||||
these are the functions you would call. Each one is followed by the text
|
||||
it prints enclosed in ||.
|
||||
|
||||
xml_start_document() |<?xml version="1.0"?>
|
||||
xml_start_document() |<?xml version="1.0"?>|
|
||||
xml_newline(); |\n|
|
||||
xml_open_start_tag("elem"); |<elem|
|
||||
xml_attribute("name", "&%.1f", 10.5); | name="&10.5"|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue