xml-twig 1.2.80 → 1.2.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +3 -3
  2. package/doc/twig.md +93 -100
  3. package/package.json +1 -1
  4. package/twig.js +121 -121
package/README.md CHANGED
@@ -32,7 +32,7 @@ npm install xml-twig
32
32
  npm install node-expat
33
33
 
34
34
  ```
35
- In my tests I parsed a 750 MB big XML file, the `node-expat` is around two times faster than `sax` (node-expat: 2:20 Minutes, sax: 4:20 Minutes). However, you may run into problems when you try to install the `node-expat` parser. That's the reason why `node-expat` parsers is not installed automatically.
35
+ In my tests I parsed a 750 MB big XML file, the `node-expat` is around two times faster than `sax` (node-expat: 2:20 Minutes, sax: 4:20 Minutes). However, you may run into problems when you try to install the `node-expat` parser. That's the reason why `node-expat` parser is not installed automatically.
36
36
 
37
37
 
38
38
  ## How to use it
@@ -232,7 +232,7 @@ With option `{ namespaces : true }` you will get access to the `.namespace` prop
232
232
  Specify attribute name or regular expression or custom condition. For details see [AttributeCondition](./doc/twig.md#AttributeCondition).<br>
233
233
  Let's assume an XML element like this:
234
234
  ```js
235
- <person firstName="Jean-Luc", lastName="Picard", age="59" />
235
+ <person firstName="Jean-Luc", lastName="Picard", age="59" />
236
236
  ```
237
237
  Here are some examples the get attribute and values:
238
238
  ```js
@@ -329,7 +329,7 @@ For methods which return a single **Twig** element (e.g. `elt.next("book")`) the
329
329
 
330
330
  #### Twig Properties
331
331
 
332
- `.isEmpty` - **boolean**: `true` if empty. An empty element ha no text nor any child elements, however empty elements can have attributes.
332
+ `.isEmpty` - **boolean**: `true` if empty. An empty element has no text nor any child elements, however empty elements can have attributes.
333
333
 
334
334
  `.level` - **integer**: The level of the element. Root element has 0, children have 1, grand-children 2 and so on
335
335