├── .gitignore ├── .travis.yml ├── Example ├── Petral.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcuserdata │ │ │ └── huangzhibin327.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Petral-Example.xcscheme │ └── xcuserdata │ │ └── huangzhibin327.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── Petral.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── huangzhibin327.xcuserdatad │ │ ├── UserInterfaceState.xcuserstate │ │ └── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist ├── Petral │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── ColumnFlexViewController.swift │ ├── ColumnFlexViewController.xml │ ├── DataFlexViewController.swift │ ├── DataFlexViewController.xml │ ├── DataListViewController.swift │ ├── DataListViewController.xml │ ├── EmbedFlexViewController.swift │ ├── EmbedFlexViewController.xml │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── head0.imageset │ │ │ ├── Contents.json │ │ │ └── head0.png │ │ ├── head1.imageset │ │ │ ├── Contents.json │ │ │ └── head1.png │ │ ├── head2.imageset │ │ │ ├── Contents.json │ │ │ └── head2.png │ │ ├── setting.imageset │ │ │ ├── Contents.json │ │ │ └── setting.png │ │ └── setting2.imageset │ │ │ ├── Contents.json │ │ │ └── setting2.png │ ├── Info.plist │ ├── InjectXmlLayoutViewController.swift │ ├── InjectXmlLayoutViewController.xml │ ├── LayoutViewController.swift │ ├── ListViewController.swift │ ├── ListViewController.xml │ ├── MyTableView.swift │ ├── MyTableViewCell.xml │ ├── MyTableViewController.swift │ ├── MyTableViewController.xml │ ├── Petral-Bridging-Header.h │ ├── RedImageView.swift │ ├── RowFlexViewController.swift │ ├── RowFlexViewController.xml │ ├── SectionListViewController.swift │ ├── SectionListViewController.xml │ ├── SimpleListViewController.swift │ ├── SimpleListViewController.xml │ ├── UserInfoView.swift │ ├── UserInfoView.xml │ ├── UserProfileView.swift │ ├── UserProfileView.xml │ ├── ViewController.swift │ ├── ViewController.xml │ ├── WrapFlexViewController.swift │ ├── WrapFlexViewController.xml │ ├── XmlLayoutViewController.swift │ ├── XmlLayoutViewController.xml │ ├── XmlViewController.swift │ ├── XmlViewController.xml │ ├── petral-ui.xsd │ └── test.xml ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── Petral.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ ├── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ └── xcuserdata │ │ │ │ └── huangzhibin327.xcuserdatad │ │ │ │ ├── UserInterfaceState.xcuserstate │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcuserdata │ │ │ └── huangzhibin327.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── Petral.xcscheme │ │ │ ├── Pods-Petral_Example.xcscheme │ │ │ ├── Pods-Petral_Tests.xcscheme │ │ │ └── xcschememanagement.plist │ └── Target Support Files │ │ ├── Petral │ │ ├── Petral-Info.plist │ │ ├── Petral-dummy.m │ │ ├── Petral-prefix.pch │ │ ├── Petral-umbrella.h │ │ ├── Petral.modulemap │ │ └── Petral.xcconfig │ │ ├── Pods-Petral_Example │ │ ├── Pods-Petral_Example-Info.plist │ │ ├── Pods-Petral_Example-acknowledgements.markdown │ │ ├── Pods-Petral_Example-acknowledgements.plist │ │ ├── Pods-Petral_Example-dummy.m │ │ ├── Pods-Petral_Example-frameworks.sh │ │ ├── Pods-Petral_Example-umbrella.h │ │ ├── Pods-Petral_Example.debug.xcconfig │ │ ├── Pods-Petral_Example.modulemap │ │ └── Pods-Petral_Example.release.xcconfig │ │ └── Pods-Petral_Tests │ │ ├── Pods-Petral_Tests-Info.plist │ │ ├── Pods-Petral_Tests-acknowledgements.markdown │ │ ├── Pods-Petral_Tests-acknowledgements.plist │ │ ├── Pods-Petral_Tests-dummy.m │ │ ├── Pods-Petral_Tests-umbrella.h │ │ ├── Pods-Petral_Tests.debug.xcconfig │ │ ├── Pods-Petral_Tests.modulemap │ │ └── Pods-Petral_Tests.release.xcconfig ├── Tests │ ├── Info.plist │ └── Tests.swift └── build │ └── XCBuildData │ ├── BuildDescriptionCacheIndex-3b2af7ba66cb1d16b8c8cc1f9f59b4e4 │ ├── f57f7d0483b85d8aaca50d9f5640f017-desc.xcbuild │ └── f57f7d0483b85d8aaca50d9f5640f017-manifest.xcbuild ├── LICENSE ├── Petral-UI.podspec ├── Petral ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── PetralAttribute.swift │ ├── PetralConfig.swift │ ├── PetralFlexView.swift │ ├── PetralLoader.swift │ ├── PetralParser.swift │ ├── PetralRestraint.swift │ ├── PetralTableView.swift │ ├── PetralUtil.swift │ └── UIView+Petral.swift ├── README.md ├── RestraintAPI.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/Petral.xcworkspace -scheme Petral-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/Petral.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Petral.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Petral.xcodeproj/project.xcworkspace/xcuserdata/huangzhibin327.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HuangZhiBin/Petral-UI/6518901c1dcc6968efd5fc78a43fe8fd6a9b4935/Example/Petral.xcodeproj/project.xcworkspace/xcuserdata/huangzhibin327.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Example/Petral.xcodeproj/xcshareddata/xcschemes/Petral-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 95 | 96 | 97 | 98 | 99 | 100 | 106 | 108 | 114 | 115 | 116 | 117 | 119 | 120 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /Example/Petral.xcodeproj/xcuserdata/huangzhibin327.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Petral-Example.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Example/Petral.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Petral.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Petral.xcworkspace/xcuserdata/huangzhibin327.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HuangZhiBin/Petral-UI/6518901c1dcc6968efd5fc78a43fe8fd6a9b4935/Example/Petral.xcworkspace/xcuserdata/huangzhibin327.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Example/Petral.xcworkspace/xcuserdata/huangzhibin327.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Example/Petral/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Petral 4 | // 5 | // Created by ikrboy@163.com on 06/13/2019. 6 | // Copyright (c) 2019 ikrboy@163.com. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Petral 11 | 12 | @UIApplicationMain 13 | class AppDelegate: UIResponder, UIApplicationDelegate { 14 | 15 | var window: UIWindow? 16 | 17 | 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 19 | // Override point for customization after application launch. 20 | let vc = ViewController(); 21 | let navigationVC = UINavigationController.init(rootViewController: vc); 22 | self.window?.rootViewController = navigationVC; 23 | self.window?.makeKeyAndVisible(); 24 | 25 | // PetralHttpManager.sharedInstance().startServer("/Users/huang/Petral-UI/Example/"); 26 | // PetralConfig.shared.reloadUrl = PetralHttpManager.sharedInstance().url; 27 | 28 | return true 29 | } 30 | 31 | func applicationWillResignActive(_ application: UIApplication) { 32 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 33 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 34 | } 35 | 36 | func applicationDidEnterBackground(_ application: UIApplication) { 37 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 38 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 39 | } 40 | 41 | func applicationWillEnterForeground(_ application: UIApplication) { 42 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 43 | } 44 | 45 | func applicationDidBecomeActive(_ application: UIApplication) { 46 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 47 | } 48 | 49 | func applicationWillTerminate(_ application: UIApplication) { 50 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 51 | } 52 | 53 | 54 | } 55 | 56 | -------------------------------------------------------------------------------- /Example/Petral/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 24 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/Petral/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Example/Petral/ColumnFlexViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ColumnFlexViewController.swift 3 | // Petral_Example 4 | // 5 | // Created by huangzhibin on 2019/7/29. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Petral 11 | 12 | class ColumnFlexViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad(); 16 | 17 | let loader = self.view.petralLoadXmlViews(xmlPath: "ColumnFlexViewController"); 18 | let flexview = loader.petralViewById(id: "flexview") as! PetralFlexView; 19 | let scrollview = loader.petralViewById(id: "scrollview") as! UIScrollView; 20 | flexview.itemDisplayAction = {(templateView: PetralFlexTemplateView, index : Int) in 21 | print(index); 22 | let cellImage : UIImageView = loader.petralViewById(id: "cellImage", inView: templateView) as! UIImageView; 23 | cellImage.image = UIImage.init(named: "head" + String(index % 3)); 24 | 25 | let cellLabel : UILabel = loader.petralViewById(id: "cellLabel", inView: templateView) as! UILabel; 26 | cellLabel.text = "User " + String(index + 1); 27 | }; 28 | flexview.itemClickAction = { (template: PetralFlexTemplateView, index : Int) in 29 | print(index); 30 | } 31 | scrollview.contentSize = flexview.resize(); 32 | // Do any additional setup after loading the view. 33 | } 34 | 35 | deinit { 36 | print("deinit"); 37 | } 38 | 39 | 40 | /* 41 | // MARK: - Navigation 42 | 43 | // In a storyboard-based application, you will often want to do a little preparation before navigation 44 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 45 | // Get the new view controller using segue.destination. 46 | // Pass the selected object to the new view controller. 47 | } 48 | */ 49 | 50 | } 51 | -------------------------------------------------------------------------------- /Example/Petral/ColumnFlexViewController.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Example/Petral/DataFlexViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DataFlexViewController.swift 3 | // Petral_Example 4 | // 5 | // Created by huangzhibin on 2019/7/29. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Petral 11 | 12 | class DataFlexViewController: UIViewController { 13 | 14 | lazy var users: [UserModel]! = { 15 | return [ 16 | UserModel.init(image: "head0", name: "熊熊"), 17 | UserModel.init(image: "head1", name: "天线德德B"), 18 | UserModel.init(image: "head2", name: "小红帽") 19 | ]; 20 | }(); 21 | 22 | var loader: PetralViewLoader!; 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad(); 26 | 27 | self.loader = self.view.petralLoadXmlViews(xmlPath: "DataFlexViewController"); 28 | let flexview = loader.petralViewById(id: "flexview") as! PetralFlexView; 29 | let scrollview = loader.petralViewById(id: "scrollview") as! UIScrollView; 30 | 31 | flexview.itemWidthAction = { (index: Int) in 32 | return ((CGFloat(index) * 0.1) + 1) * 200; 33 | }; 34 | flexview.itemHeightAction = { (index: Int) in 35 | return ((CGFloat(index) * 0.05) + 1) * 80; 36 | }; 37 | flexview.itemDisplayAction = {[weak self] (templateView: PetralFlexTemplateView, index : Int) in 38 | print(index); 39 | let cellImage : UIImageView = self?.loader.petralViewById(id: "cellImage", inView: templateView) as! UIImageView; 40 | cellImage.image = UIImage.init(named: (self?.users[index].image)!); 41 | 42 | let cellLabel : UILabel = self?.loader.petralViewById(id: "cellLabel", inView: templateView) as! UILabel; 43 | cellLabel.text = self?.users[index].name; 44 | }; 45 | flexview.itemClickAction = { (template: PetralFlexTemplateView, index : Int) in 46 | print(index); 47 | } 48 | flexview.itemCountAction = { [weak self] in 49 | return (self?.users.count)!; 50 | } 51 | scrollview.contentSize = flexview.resize(); 52 | // Do any additional setup after loading the view. 53 | 54 | let changeBtn : UIButton = self.loader.petralViewById(id: "changeBtn") as! UIButton; 55 | changeBtn.addTarget(self, action: #selector(self.changeData), for: .touchUpInside); 56 | } 57 | 58 | @objc func changeData() { 59 | self.users = [ 60 | UserModel.init(image: "head0", name: "熊熊"), 61 | UserModel.init(image: "head1", name: "天线德德B"), 62 | UserModel.init(image: "head2", name: "小红帽"), 63 | UserModel.init(image: "head0", name: "熊熊2"), 64 | UserModel.init(image: "head1", name: "天线德德B2"), 65 | UserModel.init(image: "head2", name: "小红帽2"), 66 | UserModel.init(image: "head0", name: "熊熊3"), 67 | UserModel.init(image: "head1", name: "天线德德B3"), 68 | UserModel.init(image: "head2", name: "小红帽3") 69 | ]; 70 | let flexview = self.loader.petralViewById(id: "flexview") as! PetralFlexView; 71 | let scrollview = loader.petralViewById(id: "scrollview") as! UIScrollView; 72 | flexview.reloadData(); 73 | scrollview.contentSize = flexview.resize(); 74 | } 75 | 76 | deinit { 77 | print("deinit"); 78 | } 79 | 80 | 81 | /* 82 | // MARK: - Navigation 83 | 84 | // In a storyboard-based application, you will often want to do a little preparation before navigation 85 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 86 | // Get the new view controller using segue.destination. 87 | // Pass the selected object to the new view controller. 88 | } 89 | */ 90 | 91 | } 92 | -------------------------------------------------------------------------------- /Example/Petral/DataFlexViewController.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 28 | 29 | 30 | 31 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /Example/Petral/petral-ui.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | -------------------------------------------------------------------------------- /Example/Petral/test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | 31 | 43 | 44 | 52 | 62 | 72 | 83 | 84 |