xml-twig 1.0.2 → 1.0.4

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 (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,7 +33,7 @@ npm install sax
33
33
  npm install node-expat
34
34
 
35
35
  ```
36
- In my tests I parsed a 750 MB big XML file, the `node-expat` is around times faster than `sax` (node-expat: 2:20 Minutes, sax: 4:34 Minutes ). However, you may run into problems when you try to install the `node-expat` parser. That's the reason why underlying parsers are not installed automatically.
36
+ 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 underlying parsers are not installed automatically.
37
37
 
38
38
 
39
39
  ## How to use it
@@ -248,7 +248,7 @@ Here are some examples the get attribute and values:
248
248
  .attribute((key, val) => { return key === 'age' && val > 50 })) => { "age": 59 }
249
249
  ```
250
250
 
251
- #### Twig Methods, acessing XML Elements
251
+ #### Twig Methods, accessing XML Elements
252
252
 
253
253
  `.root()` - **Twig**: The topmost element of the tree
254
254
 
@@ -262,9 +262,9 @@ Here are some examples the get attribute and values:
262
262
 
263
263
  `.previous(condition)` - **Twig**: Return the previous elt (optionally matching condition) of the element. This is the first element which opens before the current one. It is usually either the last descendant of the previous sibling or simply the parent
264
264
 
265
- `.first(condition)` - **Twig**: Returns the first elt (optionally matching condition) element. Usually the `root` element.
265
+ `.first(condition)` - **Twig**: Returns the first (optionally matching condition) element. Usually the `root` element.
266
266
 
267
- `.last(condition)` - **Twig**: Returns the last elt (optionally matching condition) element. Usually this is root element.
267
+ `.last(condition)` - **Twig**: Returns the last (optionally matching condition) element. Usually the last element in the document without children.
268
268
 
269
269
  `.ancestor(condition)` - **Twig[]**: All ancestors (parent, grandparent, etc.) of the current element (optionally matching condition) or an empty array.
270
270
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "xml-twig",
6
6
  "description": "Node module for processing huge XML documents in tree mode",
7
- "version": "1.0.2",
7
+ "version": "1.0.4",
8
8
  "main": "twig.js",
9
9
  "directories": {
10
10
  "doc": "doc"