pauldix-sax-machine 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sax-machine/sax_handler.rb +3 -2
- data/lib/sax-machine.rb +1 -1
- metadata +1 -1
- data/README.rdoc +0 -0
@@ -13,7 +13,7 @@ module SAXMachine
|
|
13
13
|
if parsing_collection?
|
14
14
|
@collection_handler.characters(string)
|
15
15
|
elsif @element_config
|
16
|
-
@value
|
16
|
+
@value << string
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -31,6 +31,7 @@ module SAXMachine
|
|
31
31
|
parse_element_attribute
|
32
32
|
|
33
33
|
else
|
34
|
+
@value = ""
|
34
35
|
@element_config = sax_config.element_config_for_tag(@name, @attrs)
|
35
36
|
end
|
36
37
|
end
|
@@ -52,7 +53,7 @@ module SAXMachine
|
|
52
53
|
end
|
53
54
|
|
54
55
|
def characaters_captured?
|
55
|
-
!@value.nil?
|
56
|
+
!@value.nil? && !@value.empty?
|
56
57
|
end
|
57
58
|
|
58
59
|
def parsing_collection?
|
data/lib/sax-machine.rb
CHANGED
metadata
CHANGED
data/README.rdoc
DELETED
File without changes
|