Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gxml
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Canek Peláez Valdés
Gxml
Commits
485dd650
Commit
485dd650
authored
11 years ago
by
Richard Schwarting
Browse files
Options
Downloads
Patches
Plain Diff
Document.vala: convert more entity references to their actual characters
parent
7eb9fb8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
gxml/Document.vala
+8
-8
8 additions, 8 deletions
gxml/Document.vala
with
8 additions
and
8 deletions
gxml/Document.vala
+
8
−
8
View file @
485dd650
...
...
@@ -464,7 +464,7 @@ namespace GXml {
/* Public Methods */
/**
* Creates an empty Element node with the tag name
* tag_name. XML example: {{{
<
Person>
<
/Person>}}}
* tag_name. XML example: {{{
<
Person>
<
/Person>}}}
*/
public
Element
create_element
(
string
tag_name
)
{
/* TODO: libxml2 doesn't complain about invalid names, but the spec
...
...
@@ -488,13 +488,13 @@ namespace GXml {
/**
* Creates a text node containing the text in data.
* XML example:
* {{{
<
someElement>Text is contained here.
<
/someElement>}}}
* {{{
<
someElement>Text is contained here.
<
/someElement>}}}
*/
public
Text
create_text_node
(
string
data
)
{
return
new
Text
(
this
.
xmldoc
->
new_text
(
data
),
this
);
}
/**
* Creates an XML comment with data. XML example: {{{
<
!-- data -->}}}
* Creates an XML comment with data. XML example: {{{
<
!-- data -->}}}
*/
public
Comment
create_comment
(
string
data
)
{
return
new
Comment
(
this
.
xmldoc
->
new_comment
(
data
),
this
);
...
...
@@ -503,7 +503,7 @@ namespace GXml {
/**
* Creates a CDATA section containing data. XML
* example:
* {{{
<
![CDATA[Here contains non-XML data, like
* {{{
<
![CDATA[Here contains non-XML data, like
* code, or something that requires a lot of special
* XML entities.]]>. }}}
*/
...
...
@@ -515,8 +515,8 @@ namespace GXml {
}
/**
* Creates a Processing Instructions. XML example:
* {{{
<
?pi_target processing instruction data?>
*
<
?xml-stylesheet href="style.xsl" type="text/xml"?>}}}
* {{{
<
?pi_target processing instruction data?>
*
<
?xml-stylesheet href="style.xsl" type="text/xml"?>}}}
*/
public
ProcessingInstruction
create_processing_instruction
(
string
target
,
string
data
)
{
check_html
(
"processing instructions"
);
// TODO: i18n
...
...
@@ -540,8 +540,8 @@ namespace GXml {
}
/**
* Creates an entity reference. XML example:
* {{{&
amp;
name;
* &
amp;
apos;}}}
* {{{&name;
* '}}}
*/
public
EntityReference
create_entity_reference
(
string
name
)
{
check_html
(
"entity reference"
);
// TODO: i18n
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment