Project

General

Profile

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<TITLE>
6
Sarissa
7
</TITLE>
8
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
9
</HEAD>
10
<SCRIPT>
11
function asd()
12
{
13
parent.document.title="Sarissa";
14
}
15
</SCRIPT>
16
<BODY BGCOLOR="white" onload="asd();">
17

    
18
<!-- ========== START OF NAVBAR ========== -->
19
<A NAME="navbar_bottom"><!-- --></A>
20
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
21
<TR>
22
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
23
<A NAME="navbar_bottom_firstrow"><!-- --></A>
24
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
25
  <TR ALIGN="center" VALIGN="top">
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <A HREF="overview-summary-Sarissa.js.html"><FONT CLASS="NavBarFont1"><B>File</B></FONT></A>&nbsp;</TD>
28
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">&nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
29
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
30
  <!--TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"-->    <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!--&nbsp;</TD-->
31
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"--><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
32
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
33
  </TR>
34
</TABLE>
35
</TD>
36
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
37
<B><a href='http://mapbuilder.sourceforge.net'>Community Map Builder</a> 27 Apr 2008</B>
38
</EM>
39
</TD
40
</TR>
41

    
42
<TR>
43
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
44
&nbsp;<A HREF="Reset.html"><B>PREV CLASS</B></A><!-- 
45
   NEXT CLASS 
46
-->
47
&nbsp;<A HREF="Save.html"><B>NEXT CLASS</B></A></FONT></TD>
48
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
49
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
50
&nbsp;<A HREF="Sarissa.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
51
&nbsp;
52
<SCRIPT>
53
  <!--
54
  if(window==top) {
55
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
56
  }
57
  //-->
58
</SCRIPT>
59
<NOSCRIPT>
60
<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
61
</NOSCRIPT>
62
</FONT></TD>
63
</TR>
64
<TR>
65
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
66
  SUMMARY:&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
67
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
68
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
69
</TR>
70
</TABLE>
71
<!-- =========== END OF NAVBAR =========== -->
72
<HR>
73

    
74
<!-- ======== START OF CLASS DATA ======== -->
75
<H2>Class Sarissa</H2>
76
<PRE>Object
77
   |
78
   +--<b>Sarissa</b>
79
</PRE>
80

    
81

    
82
<HR>
83
<DL>
84
   <!-- Class definition -->
85
   <DT>class 
86
   <B>Sarissa</B>
87
   
88

    
89
</DL>
90
   
91
   <P>
92
   <I>Defined in <a href='overview-summary-Sarissa.js.html'>Sarissa.js</a></I><BR/><BR/>
93
   </P>
94
   
95
   <HR>
96

    
97
<!-- ======== NESTED CLASS SUMMARY ======== -->
98

    
99
<!-- ======== END NESTED CLASS SUMMARY ======== -->
100

    
101

    
102
<!-- =========== FIELD SUMMARY =========== -->
103

    
104
   <A NAME="field_summary"><!-- --></A>
105
      <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
106
         <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
107
            <TD COLSPAN=2><FONT SIZE="+2">
108
               <B>Field Summary</B></FONT></TD>
109
         </TR>
110

    
111
   <!-- This is one instance field summary -->
112
   
113
   <TR BGCOLOR="white" CLASS="TableRowColor">
114
   <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
115
   <CODE>&lt;static&gt; &nbsp;Object</CODE></FONT></TD>
116
   <TD><CODE><B><A HREF="#PARSED_EMPTY">PARSED_EMPTY</A></B></CODE>
117
   <BR>
118
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
119
   </TR>
120
   
121
   <TR BGCOLOR="white" CLASS="TableRowColor">
122
   <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123
   <CODE>&lt;static&gt; &nbsp;Object</CODE></FONT></TD>
124
   <TD><CODE><B><A HREF="#PARSED_OK">PARSED_OK</A></B></CODE>
125
   <BR>
126
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
127
   </TR>
128
   
129
   <TR BGCOLOR="white" CLASS="TableRowColor">
130
   <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131
   <CODE>&lt;static&gt; &nbsp;Object</CODE></FONT></TD>
132
   <TD><CODE><B><A HREF="#PARSED_UNKNOWN_ERROR">PARSED_UNKNOWN_ERROR</A></B></CODE>
133
   <BR>
134
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
135
   </TR>
136
   
137

    
138
   </TABLE>
139
   &nbsp;
140
   
141

    
142
   
143

    
144
<!-- =========== END FIELD SUMMARY =========== -->
145

    
146

    
147
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
148

    
149
<A NAME="constructor_summary"><!-- --></A>
150
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
151
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152
<TD COLSPAN=2><FONT SIZE="+2">
153
<B>Constructor Summary</B></FONT></TD>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
   <TD>
157
      <CODE>
158
	 <B>
159
	    <A HREF="Sarissa.html#Sarissa()">Sarissa</A> 
160
	 </B>
161
	 ()
162
      </CODE>
163
      <BR>
164
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
165
      <p>Sarissa is a utility class.
166
      </TD>
167
</TR>
168
</TABLE>
169

    
170
<!-- ======== END CONSTRUCTOR SUMMARY ======== -->
171

    
172
&nbsp;
173

    
174
<!-- ========== METHOD SUMMARY =========== -->
175

    
176
<A NAME="method_summary"><!-- --></A>
177
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
178
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
179
<TD COLSPAN=2><FONT SIZE="+2">
180
<B>Method Summary</B></FONT></TD>
181
</TR>
182

    
183

    
184
   <TR BGCOLOR="white" CLASS="TableRowColor">
185
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
186
	 <FONT SIZE="-1">
187
	    <CODE>&lt;static&gt;&nbsp;void</CODE>
188
	 </FONT>
189
      </TD>
190
      <TD>
191
	 <CODE>
192
	    <B>
193
	       <A HREF="#clearChildNodes">clearChildNodes</A></B>(oNode)
194
	 </CODE>
195
	 <BR>
196
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
197
	 <p>Deletes all child nodes of the given node</p>
198
      </TD>
199
   </TR>
200

    
201
   <TR BGCOLOR="white" CLASS="TableRowColor">
202
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
203
	 <FONT SIZE="-1">
204
	    <CODE>&lt;static&gt;&nbsp;void</CODE>
205
	 </FONT>
206
      </TD>
207
      <TD>
208
	 <CODE>
209
	    <B>
210
	       <A HREF="#copyChildNodes">copyChildNodes</A></B>(nodeFrom, nodeTo, bPreserveExisting)
211
	 </CODE>
212
	 <BR>
213
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
214
	 <p> Copies the childNodes of nodeFrom to nodeTo</p>
215
 <p> <b>Note:</b> The second object's original content is deleted before 
216
 the copy operation, unless you supply a true third parameter</p>
217
      </TD>
218
   </TR>
219

    
220
   <TR BGCOLOR="white" CLASS="TableRowColor">
221
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
222
	 <FONT SIZE="-1">
223
	    <CODE>&lt;static&gt;&nbsp;Object</CODE>
224
	 </FONT>
225
      </TD>
226
      <TD>
227
	 <CODE>
228
	    <B>
229
	       <A HREF="#escape">escape</A></B>(sXml)
230
	 </CODE>
231
	 <BR>
232
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
233
	 Escape the given string chacters that correspond to the five predefined XML entities
234
      </TD>
235
   </TR>
236

    
237
   <TR BGCOLOR="white" CLASS="TableRowColor">
238
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
239
	 <FONT SIZE="-1">
240
	    <CODE>&lt;static&gt;&nbsp;Object</CODE>
241
	 </FONT>
242
      </TD>
243
      <TD>
244
	 <CODE>
245
	    <B>
246
	       <A HREF="#getDomDocument">getDomDocument</A></B>(sUri, sName)
247
	 </CODE>
248
	 <BR>
249
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
250
	 <p>Factory method to obtain a new DOM Document object</p>
251
      </TD>
252
   </TR>
253

    
254
   <TR BGCOLOR="white" CLASS="TableRowColor">
255
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
256
	 <FONT SIZE="-1">
257
	    <CODE>&lt;static&gt;&nbsp;Object</CODE>
258
	 </FONT>
259
      </TD>
260
      <TD>
261
	 <CODE>
262
	    <B>
263
	       <A HREF="#getParseErrorText">getParseErrorText</A></B>(oDoc)
264
	 </CODE>
265
	 <BR>
266
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
267
	 <p>Returns a human readable description of the parsing error.
268
      </TD>
269
   </TR>
270

    
271
   <TR BGCOLOR="white" CLASS="TableRowColor">
272
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
273
	 <FONT SIZE="-1">
274
	    <CODE>&lt;static&gt;&nbsp;Object</CODE>
275
	 </FONT>
276
      </TD>
277
      <TD>
278
	 <CODE>
279
	    <B>
280
	       <A HREF="#getText">getText</A></B>(oNode, deep)
281
	 </CODE>
282
	 <BR>
283
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
284
	 
285
      </TD>
286
   </TR>
287

    
288
   <TR BGCOLOR="white" CLASS="TableRowColor">
289
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
290
	 <FONT SIZE="-1">
291
	    <CODE>&lt;static&gt;&nbsp;void</CODE>
292
	 </FONT>
293
      </TD>
294
      <TD>
295
	 <CODE>
296
	    <B>
297
	       <A HREF="#moveChildNodes">moveChildNodes</A></B>(nodeFrom, nodeTo, bPreserveExisting)
298
	 </CODE>
299
	 <BR>
300
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
301
	 <p> Moves the childNodes of nodeFrom to nodeTo</p>
302
 <p> <b>Note:</b> The second object's original content is deleted before 
303
 the move operation, unless you supply a true third parameter</p>
304
      </TD>
305
   </TR>
306

    
307
   <TR BGCOLOR="white" CLASS="TableRowColor">
308
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
309
	 <FONT SIZE="-1">
310
	    <CODE>&lt;static&gt;&nbsp;void</CODE>
311
	 </FONT>
312
      </TD>
313
      <TD>
314
	 <CODE>
315
	    <B>
316
	       <A HREF="#setXpathNamespaces">setXpathNamespaces</A></B>(oDoc, sNsSet)
317
	 </CODE>
318
	 <BR>
319
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
320
	 
321
      </TD>
322
   </TR>
323

    
324
   <TR BGCOLOR="white" CLASS="TableRowColor">
325
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
326
	 <FONT SIZE="-1">
327
	    <CODE>&lt;static&gt;&nbsp;Object</CODE>
328
	 </FONT>
329
      </TD>
330
      <TD>
331
	 <CODE>
332
	    <B>
333
	       <A HREF="#stripTags">stripTags</A></B>(s)
334
	 </CODE>
335
	 <BR>
336
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
337
	 strips tags from a markup string
338
      </TD>
339
   </TR>
340

    
341
   <TR BGCOLOR="white" CLASS="TableRowColor">
342
      <TD ALIGN="right" VALIGN="top" WIDTH="1%">
343
	 <FONT SIZE="-1">
344
	    <CODE>&lt;static&gt;&nbsp;Object</CODE>
345
	 </FONT>
346
      </TD>
347
      <TD>
348
	 <CODE>
349
	    <B>
350
	       <A HREF="#xmlize">xmlize</A></B>(anyObject, objectName, indentSpace)
351
	 </CODE>
352
	 <BR>
353
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
354
	 <p>Serialize any object to an XML string.
355
      </TD>
356
   </TR>
357

    
358

    
359
</TABLE>
360

    
361

    
362

    
363
<P>
364
<!-- ========== END METHOD SUMMARY =========== -->
365

    
366

    
367
<!-- ============ FIELD DETAIL START =========== -->
368

    
369
   <A NAME="field_detail"><!-- --></A>
370
   <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
371
      <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
372
         <TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD>
373
      </TR>
374
   </TABLE>
375

    
376
   
377
   <A NAME="PARSED_EMPTY"><!-- --></A>
378
   <H3>PARSED_EMPTY</H3>
379
   <PRE>&lt;static&gt;&nbsp;Object&nbsp;<B>PARSED_EMPTY</B></PRE>
380
   <UL>
381
   
382
   
383
   </UL>
384
   <HR>
385
   
386
   <A NAME="PARSED_OK"><!-- --></A>
387
   <H3>PARSED_OK</H3>
388
   <PRE>&lt;static&gt;&nbsp;Object&nbsp;<B>PARSED_OK</B></PRE>
389
   <UL>
390
   
391
   
392
   </UL>
393
   <HR>
394
   
395
   <A NAME="PARSED_UNKNOWN_ERROR"><!-- --></A>
396
   <H3>PARSED_UNKNOWN_ERROR</H3>
397
   <PRE>&lt;static&gt;&nbsp;Object&nbsp;<B>PARSED_UNKNOWN_ERROR</B></PRE>
398
   <UL>
399
   
400
   
401
   </UL>
402
   <HR>
403
   
404

    
405

    
406
<!-- ============ FIELD DETAIL END =========== -->
407

    
408
    <!-- ========= CONSTRUCTOR DETAIL START ======== -->
409

    
410
<A NAME="constructor_detail"><!-- --></A>
411
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
412
   <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
413
      <TD COLSPAN=1>
414
      <FONT SIZE="+2"><B>Constructor Detail</B></FONT>
415
      </TD>
416
   </TR>
417
</TABLE>
418

    
419
<A NAME="Sarissa()"><!-- --></A><H3>
420
Sarissa</H3>
421
<PRE><B>Sarissa</B>()</PRE>
422

    
423

    
424
<UL>
425
   <p>Sarissa is a utility class. Provides "static" methods for DOMDocument, 
426
 DOM Node serialization to XML strings and other utility goodies.</p>
427
</UL>
428

    
429

    
430

    
431
   </UL>
432

    
433

    
434
<!-- Constructor return value(s) -->
435

    
436
<!-- End constructor return value(s) -->
437

    
438
<!-- ADDITIONAL ATTRIBUTES -->
439

    
440
<HR/>
441
<!-- END ADDITIONAL ATTRIBUTES  -->
442

    
443
<!-- ========= CONSTRUCTOR DETAIL END ======== -->
444

    
445

    
446
<!-- ============ METHOD DETAIL START ========== -->
447

    
448
<A NAME="method_detail"><!-- --></A>
449
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
450
   <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
451
      <TD COLSPAN=1><FONT SIZE="+2">
452
         <B>Method Detail</B></FONT>
453
      </TD>
454
   </TR>
455
</TABLE>
456

    
457
<!-- One single method detail entry -->
458

    
459
   <A NAME="clearChildNodes"><!-- --></A>
460
   <H3>clearChildNodes</H3>
461
   <PRE>&lt;static&gt; void <B>clearChildNodes</B>(oNode)</PRE>
462
   
463
      <UL><p>Deletes all child nodes of the given node</p></UL>
464
   
465

    
466
   <!-- METHOD PARAMETERS START -->
467
   
468
   <UL>
469
   <B>Parameters:</B>
470
   
471
     <UL><CODE>oNode</CODE> -  the Node to empty    
472
      </UL> 
473
   
474
   </UL>
475
   
476
   <!-- METHOD PARAMETERS END -->
477

    
478
   
479

    
480
   <!-- ADDITIONAL ATTRIBUTES START -->
481
   
482
   <!-- ADDITIONAL ATTRIBUTES  END -->
483
<HR>
484

    
485
   <A NAME="copyChildNodes"><!-- --></A>
486
   <H3>copyChildNodes</H3>
487
   <PRE>&lt;static&gt; void <B>copyChildNodes</B>(nodeFrom, nodeTo, bPreserveExisting)</PRE>
488
   
489
      <UL><p> Copies the childNodes of nodeFrom to nodeTo</p>
490
 <p> <b>Note:</b> The second object's original content is deleted before 
491
 the copy operation, unless you supply a true third parameter</p></UL>
492
   
493

    
494
   <!-- METHOD PARAMETERS START -->
495
   
496
   <UL>
497
   <B>Parameters:</B>
498
   
499
     <UL><CODE>nodeFrom</CODE> -  the Node to copy the childNodes from  
500
      </UL> 
501
   
502
     <UL><CODE>nodeTo</CODE> -  the Node to copy the childNodes to  
503
      </UL> 
504
   
505
     <UL><CODE>bPreserveExisting</CODE> -  whether to preserve the original content of nodeTo, default is false    
506
      </UL> 
507
   
508
   </UL>
509
   
510
   <!-- METHOD PARAMETERS END -->
511

    
512
   
513

    
514
   <!-- ADDITIONAL ATTRIBUTES START -->
515
   
516
   <!-- ADDITIONAL ATTRIBUTES  END -->
517
<HR>
518

    
519
   <A NAME="escape"><!-- --></A>
520
   <H3>escape</H3>
521
   <PRE>&lt;static&gt; Object <B>escape</B>(sXml)</PRE>
522
   
523
      <UL>Escape the given string chacters that correspond to the five predefined XML entities</UL>
524
   
525

    
526
   <!-- METHOD PARAMETERS START -->
527
   
528
   <UL>
529
   <B>Parameters:</B>
530
   
531
     <UL><CODE>sXml</CODE> -  the string to escape
532
      </UL> 
533
   
534
   </UL>
535
   
536
   <!-- METHOD PARAMETERS END -->
537

    
538
   
539

    
540
   <!-- ADDITIONAL ATTRIBUTES START -->
541
   
542
   <!-- ADDITIONAL ATTRIBUTES  END -->
543
<HR>
544

    
545
   <A NAME="getDomDocument"><!-- --></A>
546
   <H3>getDomDocument</H3>
547
   <PRE>&lt;static&gt; Object <B>getDomDocument</B>(sUri, sName)</PRE>
548
   
549
      <UL><p>Factory method to obtain a new DOM Document object</p></UL>
550
   
551

    
552
   <!-- METHOD PARAMETERS START -->
553
   
554
   <UL>
555
   <B>Parameters:</B>
556
   
557
     <UL><CODE>sUri</CODE> -  the namespace of the root node (if any)  
558
      </UL> 
559
   
560
     <UL><CODE>sUri</CODE> -  the local name of the root node (if any)  
561
      </UL> 
562
   
563
   </UL>
564
   
565
   <!-- METHOD PARAMETERS END -->
566

    
567
   
568
   <UL>
569
   <B>Returns:</B>
570
        <UL>
571
        a new DOM Document 
572
        </UL>
573
   </UL>
574
   
575

    
576
   <!-- ADDITIONAL ATTRIBUTES START -->
577
   
578
   <!-- ADDITIONAL ATTRIBUTES  END -->
579
<HR>
580

    
581
   <A NAME="getParseErrorText"><!-- --></A>
582
   <H3>getParseErrorText</H3>
583
   <PRE>&lt;static&gt; Object <B>getParseErrorText</B>(oDoc)</PRE>
584
   
585
      <UL><p>Returns a human readable description of the parsing error. Usefull
586
 for debugging. Tip: append the returned error string in a &lt;pre&gt;
587
 element if you want to render it.</p>
588
 <p>Many thanks to Christian Stocker for the initial patch.</p></UL>
589
   
590

    
591
   <!-- METHOD PARAMETERS START -->
592
   
593
   <UL>
594
   <B>Parameters:</B>
595
   
596
     <UL><CODE>oDoc</CODE> -  The target DOM document  
597
      </UL> 
598
   
599
   </UL>
600
   
601
   <!-- METHOD PARAMETERS END -->
602

    
603
   
604
   <UL>
605
   <B>Returns:</B>
606
        <UL>
607
        The parsing error description of the target Document in           human readable form (preformated text) 
608
        </UL>
609
   </UL>
610
   
611

    
612
   <!-- ADDITIONAL ATTRIBUTES START -->
613
   
614
   <!-- ADDITIONAL ATTRIBUTES  END -->
615
<HR>
616

    
617
   <A NAME="getText"><!-- --></A>
618
   <H3>getText</H3>
619
   <PRE>&lt;static&gt; Object <B>getText</B>(oNode, deep)</PRE>
620
   
621

    
622
   <!-- METHOD PARAMETERS START -->
623
   
624
   <!-- METHOD PARAMETERS END -->
625

    
626
   
627

    
628
   <!-- ADDITIONAL ATTRIBUTES START -->
629
   
630
   <!-- ADDITIONAL ATTRIBUTES  END -->
631
<HR>
632

    
633
   <A NAME="moveChildNodes"><!-- --></A>
634
   <H3>moveChildNodes</H3>
635
   <PRE>&lt;static&gt; void <B>moveChildNodes</B>(nodeFrom, nodeTo, bPreserveExisting)</PRE>
636
   
637
      <UL><p> Moves the childNodes of nodeFrom to nodeTo</p>
638
 <p> <b>Note:</b> The second object's original content is deleted before 
639
 the move operation, unless you supply a true third parameter</p></UL>
640
   
641

    
642
   <!-- METHOD PARAMETERS START -->
643
   
644
   <UL>
645
   <B>Parameters:</B>
646
   
647
     <UL><CODE>nodeFrom</CODE> -  the Node to copy the childNodes from  
648
      </UL> 
649
   
650
     <UL><CODE>nodeTo</CODE> -  the Node to copy the childNodes to  
651
      </UL> 
652
   
653
     <UL><CODE>bPreserveExisting</CODE> -  whether to preserve the original content of nodeTo, default is    
654
      </UL> 
655
   
656
   </UL>
657
   
658
   <!-- METHOD PARAMETERS END -->
659

    
660
   
661

    
662
   <!-- ADDITIONAL ATTRIBUTES START -->
663
   
664
   <!-- ADDITIONAL ATTRIBUTES  END -->
665
<HR>
666

    
667
   <A NAME="setXpathNamespaces"><!-- --></A>
668
   <H3>setXpathNamespaces</H3>
669
   <PRE>&lt;static&gt; void <B>setXpathNamespaces</B>(oDoc, sNsSet)</PRE>
670
   
671

    
672
   <!-- METHOD PARAMETERS START -->
673
   
674
   <!-- METHOD PARAMETERS END -->
675

    
676
   
677

    
678
   <!-- ADDITIONAL ATTRIBUTES START -->
679
   
680
   <!-- ADDITIONAL ATTRIBUTES  END -->
681
<HR>
682

    
683
   <A NAME="stripTags"><!-- --></A>
684
   <H3>stripTags</H3>
685
   <PRE>&lt;static&gt; Object <B>stripTags</B>(s)</PRE>
686
   
687
      <UL>strips tags from a markup string</UL>
688
   
689

    
690
   <!-- METHOD PARAMETERS START -->
691
   
692
   <!-- METHOD PARAMETERS END -->
693

    
694
   
695

    
696
   <!-- ADDITIONAL ATTRIBUTES START -->
697
   
698
   <!-- ADDITIONAL ATTRIBUTES  END -->
699
<HR>
700

    
701
   <A NAME="xmlize"><!-- --></A>
702
   <H3>xmlize</H3>
703
   <PRE>&lt;static&gt; Object <B>xmlize</B>(anyObject, objectName, indentSpace)</PRE>
704
   
705
      <UL><p>Serialize any object to an XML string. All properties are serialized using the property name
706
 as the XML element name. Array elements are rendered as <code>array-item</code> elements, 
707
 using their index/key as the value of the <code>key</code> attribute.</p></UL>
708
   
709

    
710
   <!-- METHOD PARAMETERS START -->
711
   
712
   <UL>
713
   <B>Parameters:</B>
714
   
715
     <UL><CODE>anyObject</CODE> -  the object to serialize  
716
      </UL> 
717
   
718
     <UL><CODE>objectName</CODE> -  a name for that object  
719
      </UL> 
720
   
721
   </UL>
722
   
723
   <!-- METHOD PARAMETERS END -->
724

    
725
   
726
   <UL>
727
   <B>Returns:</B>
728
        <UL>
729
        the XML serializationj of the given object as a string 
730
        </UL>
731
   </UL>
732
   
733

    
734
   <!-- ADDITIONAL ATTRIBUTES START -->
735
   
736
   <!-- ADDITIONAL ATTRIBUTES  END -->
737
<HR>
738

    
739

    
740

    
741
<!-- ============ METHOD DETAIL END ========== -->
742

    
743
<!-- ========= END OF CLASS DATA ========= -->
744

    
745
<!-- ========== START OF NAVBAR ========== -->
746
<A NAME="navbar_bottom"><!-- --></A>
747
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
748
<TR>
749
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
750
<A NAME="navbar_bottom_firstrow"><!-- --></A>
751
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
752
  <TR ALIGN="center" VALIGN="top">
753
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
754
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <A HREF="overview-summary-Sarissa.js.html"><FONT CLASS="NavBarFont1"><B>File</B></FONT></A>&nbsp;</TD>
755
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
756
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><b>Tree</b></FONT></A>&nbsp;</TD>
757
  <!--TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"-->    <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!--&nbsp;</TD-->
758
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
759
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
760
  </TR>
761
</TABLE>
762
</TD>
763
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
764
<B><a href='http://mapbuilder.sourceforge.net'>Community Map Builder</a> 27 Apr 2008</B>
765
</EM>
766
</TD
767
</TR>
768

    
769
<TR>
770
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
771
&nbsp;<A HREF="Reset.html"><B>PREV CLASS</B></A><!-- 
772
   NEXT CLASS 
773
-->
774
&nbsp;<A HREF="Save.html"><B>NEXT CLASS</B></A></FONT></TD>
775
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
776
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
777
&nbsp;<A HREF="Sarissa.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
778
&nbsp;
779
<SCRIPT>
780
  <!--
781
  if(window==top) {
782
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
783
  }
784
  //-->
785
</SCRIPT>
786
<NOSCRIPT>
787
<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
788
</NOSCRIPT>
789
</FONT></TD>
790
</TR>
791
<TR>
792
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
793
  SUMMARY:&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
794
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
795
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
796
</TR>
797
</TABLE>
798

    
799
<!-- =========== END OF NAVBAR =========== -->
800

    
801
<HR>
802
<FONT SIZE="-1">
803

    
804
</FONT>
805
<div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Sun Apr 27 20:30:54 2008</div>
806
</BODY>
807
</HTML>
(69-69/316)