Skip to content

Commit

Permalink
Issue 64 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamblett authored Dec 26, 2023
1 parent 5bb77f0 commit f36aaca
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/src/xml2json.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright : S.Hamblett@OSCF
*/

part of xml2json;
part of '../xml2json.dart';

/// The Xml2Json class provides a means of parsing XML data and transforming the
/// resultant element tree into the following popular JSON XML formats :-
Expand Down
4 changes: 2 additions & 2 deletions lib/src/xml2json_badgerfish.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
*/

part of xml2json;
part of '../xml2json.dart';

/// Badgerfish transform class.
class _Xml2JsonBadgerfish {
Expand All @@ -32,7 +32,7 @@ class _Xml2JsonBadgerfish {
} else if (obj[_marker] is Map<dynamic, dynamic>) {
obj[_marker] = <dynamic>[obj[_marker], nodeData];
} else {
if ((obj as Map).containsKey(_marker)) {
if ((obj).containsKey(_marker)) {
obj[_marker] = obj[_marker] + nodeData;
} else {
obj[_marker] = nodeData;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/xml2json_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
*/

part of xml2json;
part of '../xml2json.dart';

/// Exception class
///
Expand Down
2 changes: 1 addition & 1 deletion lib/src/xml2json_gdata.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
*/

part of xml2json;
part of '../xml2json.dart';

/// GData transform class.
class _Xml2JsonGData {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/xml2json_open_rally.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Date : 26/04/2023
*/

part of xml2json;
part of '../xml2json.dart';

/// OpenRally transform class
class _Xml2JsonOpenRally {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/xml2json_parker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Copyright : S.Hamblett@OSCF
*/

part of xml2json;
part of '../xml2json.dart';

/// Parker transform class
class _Xml2JsonParker {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/xml2json_parker_with_attrs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @date: 2021/05/23 18:04:54
*/

part of xml2json;
part of '../xml2json.dart';

/// ParkerWithAttrs transform class.
/// Used as an alternative to Parker if the node element contains attributes.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/xml2json_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
*/

part of xml2json;
part of '../xml2json.dart';

/// General utilities
class _Xml2JsonUtils {
Expand Down
11 changes: 5 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ dependencies:
xml: '^6.3.0'

dev_dependencies:
test: '^1.24.2'
pedantic: '^1.10.0'
lints: '^2.1.0'
build_runner: '^2.4.2'
build_test: '^2.1.7'
build_web_compilers: '^4.0.3'
test: '^1.25.0'
lints: '^3.0.0'
build_runner: '^2.4.7'
build_test: '^2.2.2'
build_web_compilers: '^4.0.7'

0 comments on commit f36aaca

Please sign in to comment.