ProcessingInstruction.m 646 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // ProcessingInstruction.m
  3. // SVGKit
  4. //
  5. // Created by adam on 22/05/2012.
  6. // Copyright (c) 2012 __MyCompanyName__. All rights reserved.
  7. //
  8. #import "ProcessingInstruction.h"
  9. @interface ProcessingInstruction()
  10. @property(nonatomic,strong,readwrite) NSString* target;
  11. @property(nonatomic,strong,readwrite) NSString* data;
  12. @end
  13. @implementation ProcessingInstruction
  14. @synthesize target;
  15. @synthesize data;
  16. -(id) initProcessingInstruction:(NSString*) t value:(NSString*) d
  17. {
  18. self = [super initType:DOMNodeType_PROCESSING_INSTRUCTION_NODE name:t value:d];
  19. if (self) {
  20. self.target = t;
  21. self.data = d;
  22. }
  23. return self;
  24. }
  25. @end